Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 757 Bytes

README.md

File metadata and controls

32 lines (17 loc) · 757 Bytes

GenericRestService

A generic rest service written in Asp.Net Web API.

Idea is simple.

A Basic controller which maps to: /api/{resource}/{id}.

To Get All Items for a resource:

GET /api/{resource}/

To Get a Specific Item

GET /api/{resource}/{id}

To Delete an Item

DELETE /api/{resource}/{id}

To Create an Item

POST/PUT /api/{resource}/ with the JSON Document as the Body

To Update an Item

POST/PUT /api/{resource}/{id} with the updated JSON Document as the Body

I wrote this as I needed a generic service to work against for a Mobile App while I was waiting for a 3rd Party to complete their service

To use yourself, just change the connection string, and deploy.