https://github.com/xenoken/quickrest
Simplest and Quickest REST Library
https://github.com/xenoken/quickrest
dotnet quick rest rest-api simple vbnet
Last synced: about 1 year ago
JSON representation
Simplest and Quickest REST Library
- Host: GitHub
- URL: https://github.com/xenoken/quickrest
- Owner: xenoken
- License: mit
- Created: 2017-04-15T18:46:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-13T21:47:19.000Z (over 7 years ago)
- Last Synced: 2025-02-22T04:44:28.635Z (over 1 year ago)
- Topics: dotnet, quick, rest, rest-api, simple, vbnet
- Language: Visual Basic
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# QuickRest [](https://app.codacy.com/app/xenoken/QuickRest?utm_source=github.com&utm_medium=referral&utm_content=xenoken/QuickRest&utm_campaign=Badge_Grade_Dashboard)[](https://ci.appveyor.com/project/xenoken/quickrest)
The simplest and quickest way to build and send REST requests.
## Getting Started
QuickRest helps developers to compose REST requests very easily.
As an example, here is the most basic REST request achievable with QuickRest:
```cs
using QuickRest;
Request request = new Request("http://www.ExampleWebsite.com");
request.Send();
```
and that's it! Your request has been sent successfully! Yes!
OK... but how do I get a response to my request?
With QuickRest, that's easy too.
Request.Send() is an asynchronous method, and will not block the code flow.
To get a response, subscribe to the *OnResponse* event of a request instance before sending it, and wait for the response to arrive.
It is that simple!
```cs
using QuickRest
Request r = new Request("http://www.ExampleWebsite.com");
'in order to get an answer for your request
r.OnResponse += OnResponseCallback;
r.Send();
public void OnResponseCallback(Request _request,Response _response)
{
// some_code_here...
}
```
## Notes
- By default, QuickRest uses the GET method for requests.
- QuickRest targets .NET Framework 2.0.
## ChangeLog
- Version *1.0*
QuickRest First Version