Skip to content

Commit d1b578a

Browse files
authored
adding endpoints
thanks to sources
1 parent 6674192 commit d1b578a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# FirstLaravel
22

3+
## Endpoints
4+
5+
**Get all posts:** `GET /api/posts`
6+
7+
**Get a single post:** `GET /api/posts/{id}`
8+
9+
**Create a new post:** `POST /api/posts`
10+
11+
**Update a post:** `PUT /api/posts/{id}`
12+
13+
**Delete a post:** `DELETE /api/posts/{id}`
14+
315
## Routes
416

517
```

0 commit comments

Comments
 (0)