use this https://students.shion0625.site/
RESTful API in Laravel PHP. This API is the first API I created. Since we are using only one database, it will be shared with multiple people. I created it as a study of Restful API. I'm sure there are things I haven't done well, so if you have any advice, I'd appreciate it if you could send it to me via issue or something.
- User Registration Function
- Retrieval of all users
- Retrieving specific users
- Update information of a specific user
- Delete a user
Each parameter of the request is a
- Path
- Query
- Header
- (in the POST method) body
The parameters of the request must be placed in the specified location in the body of the request. Body parameters are received in JSON format.
Returns 2xx
on success, or 4xx
or 5xx
(where x
is a number) on error as a status code.
method | URI | |
---|---|---|
Get all user information | GET | /api/students |
Obtain specific user information | GET | /api/students/{id} |
method | URI | |
---|---|---|
Register a user | POST | /api/students |
Update specific user information | PUT | /api/students/{id} |
Delete a specific user | DELETE | /api/students/{id} |