https://github.com/parth7676/restapi-caller
Make request to REST Service
https://github.com/parth7676/restapi-caller
Last synced: 13 days ago
JSON representation
Make request to REST Service
- Host: GitHub
- URL: https://github.com/parth7676/restapi-caller
- Owner: parth7676
- License: gpl-3.0
- Created: 2016-05-07T03:06:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-11T13:08:35.000Z (about 10 years ago)
- Last Synced: 2025-02-28T05:30:45.224Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 52.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RestAPI-Helper
A class library to call any Rest API around the web.
#Included Packages
[Json.NET](https://www.nuget.org/packages/newtonsoft.json/)
#How To Use This Library
1. Include this library into your project.
2. Expand References, If you don't find Newtonsoft.Json loaded properly then reinstall it from nuget packet manager.

3. Add reference of this class library to your project.

4. Pass the request object to the GetResponse method in the RestAPICaller class
5. Set the endpoint,select request method,pass content type, add all the request headers to the requestHeader dictionary, serialize your request data and call the MakeRequest method pass all this as parameter.
6. Now in the RestAPICaller class you need to cast the respone from the rest API in your required success and error objects.
7. Outside the class library you will get response status, success response object, error response object.