Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rupadana authored Jul 31, 2024
1 parent 9143d70 commit f61a63e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ So, You don't need to register the routes manually.

The routes will be :

- [GET] '/api/`admin`/blogs' - Return LengthAwarePaginator
- [GET] '/api/`admin`/blogs/1' - Return single resource
- [PUT] '/api/`admin`/blogs/1' - Update resource
- [POST] '/api/`admin`/blogs' - Create resource
- [DELETE] '/api/`admin`/blogs/1' - Delete resource
| Method | Endpoint | Description |
| ------ | -------------------- | --------------------------- |
| GET | /api/`admin`/blogs | Return LengthAwarePaginator |
| GET | /api/`admin`/blogs/1 | Return single resource |
| PUT | /api/`admin`/blogs/1 | Update resource |
| POST | /api/`admin`/blogs | Create resource |
| DELETE | /api/`admin`/blogs/1 | Delete resource |

On CreateHandler, you need to be create your custom request validation.

Expand Down

0 comments on commit f61a63e

Please sign in to comment.