igorkulman / kulman.wpa81.baserestservice Goto Github PK
View Code? Open in Web Editor NEWBase class for a Windows Phone 8.1 XAML, Windows 8.1 and Windows 10 Universal REST service implementation
License: MIT License
Base class for a Windows Phone 8.1 XAML, Windows 8.1 and Windows 10 Universal REST service implementation
License: MIT License
Ditch SymbolSource.org and use GitLink instead
I'm using an API returning a 400 StatusCode (Bad Request) but I need the response content because the API store the error message there.
With the default EnsureSuccessStatusCode I don't have the information.
I've a fix and I'll create a pull request
Add better check for absolute vs relative url at https://github.com/igorkulman/Kulman.WPA81.BaseRestService/blob/master/Kulman.WPA81.BaseRestService/Services/Abstract/BaseRestService.cs#L240
Would be nice to log all the requests with their parameters so the user code can see it while debugging.
The idea is to be able to get all the response headers when using POST, GET, PATCH, PUT.
There are two possible approaches that come to mind
Add CancellationToken
as an optional parameter to all HTTP methods and make it work as expected.
Is there a reason to have a separate UWP package? The WPA81 package works fine in UWP projects.
Better unit tests are needed to cover all the functionality. A server with suitable endpoints needs to be found or written.
As I can see there is only on method delete
protected Task Delete([NotNull] string url)
I'm using an API returning a json response from a Delete and it could be nice to have a delete signature like this :
protected Task<T> Delete<T>([NotNull] string url)
The idea is to add an interface, something like ICache that the REST service will use for response caching. Caching can be done according to time, ETag, etc. depending on the ICache implementation.
The library should also include a sample implementation of this interface, for example memory or local storage caching.
The Jetbrains.Annotations binary dependence needs to be removed and the annotations should be make visible to the outside world.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.