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

https://github.com/sandysanthosh/rest-api-doc

Rest API Document to TEST in Bootstrap using AXIOS
https://github.com/sandysanthosh/rest-api-doc

postman restapi

Last synced: 7 months ago
JSON representation

Rest API Document to TEST in Bootstrap using AXIOS

Awesome Lists containing this project

README

          

## REST API DOCUMENTATION

### Representational state transfer

REST != HTTP

Resources are decoupled from their representation variety of formats

- HTML, XML, plain text, PDF, JPEG, JSON

HTTPS Methods:
GET
PUT
POST
DELETE
PATCH

HTTPS STATUS CODE:

200 OK
201 OK created
301 Moved t new url
304 Not modified
400 Bad reuquest
401 Unauthorized
404 Not found
500 Internal server error

Learn REST API:

https://developer.github.com/v3/#pagination

To Test REST API you can use POSTMAN:

To Test all the user:

https://api.github.com/users

To Test Specific user:

https://api.github.com/users/sandysanthosh

### Fake Rest API:

Resources:

https://jsonplaceholder.typicode.com/

/posts 100 posts
/comments 500 comments
/albums 100 albums
/photos 5000 photos
/todos 200 todos
/users 10 Users

Routers:

https://jsonplaceholder.typicode.com/

GET /posts
GET /posts/1
GET /posts/1/comments
GET /comments?postId=1
GET /posts?userId=1
POST /posts
PUT /posts/1
PATCH /posts/1
DELETE /posts/1

TO LIMIT:

https://jsonplaceholder.typicode.com/todos?_limit=5

### Download Axios folder and run index.html:

![axios](https://user-images.githubusercontent.com/11579239/82775884-a9bfe600-9e66-11ea-9364-daef55b3ac91.JPG)


@Restcontroller
@ResponseBody
@RequestMapping



#### Follow USStarwalt