Sample_REST
POSTAdd Category
127.0.0.1:3000/category
The Categories are for books(Like Fiction,Drama etc)
API Call to add a category
HEADERS
Content-Type
Bodyraw
Example Request
Add Category Example 1
200 OK
Example Response
Access-Control-Allow-Origin
Connection
Content-Length
Content-Type
Date
ETag
X-Powered-By
GETGet Category Books by Category Name
127.0.0.1:3000/books/?category=Indian
PARAMS
category
Example Request
Get Books by Category Name
200 OK
Example Response
Access-Control-Allow-Origin
Connection
Content-Length
Content-Type
Date
ETag
X-Powered-By
DELETEDelete Category
127.0.0.1:3000/category/xyz
API Call to delete a category
Example Request
DeleteCategoryExample
200 OK
Example Response
Access-Control-Allow-Origin
Connection
Content-Length
Content-Type
Date
ETag
X-Powered-By
PUTUpdate Category
127.0.0.1:3000/category/Fantasy1
API Call to Update a Category
HEADERS
Content-Type
Bodyraw
Example Request
UpdateCategoryExample
200 OK
Example Response
Access-Control-Allow-Origin
Connection
Content-Length
Content-Type
Date
ETag
X-Powered-By