An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# QuickRest [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6d1e128f286d452cbbeba5d25795e3a4)](https://app.codacy.com/app/xenoken/QuickRest?utm_source=github.com&utm_medium=referral&utm_content=xenoken/QuickRest&utm_campaign=Badge_Grade_Dashboard)[![Build status](https://ci.appveyor.com/api/projects/status/h762wn0j57f5wvyx?svg=true)](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