A simple clone of JSON Placeholder, written in go with chi.
-
Clone the Repository
-
Run
# Runs on port 3000 go run .
/users |
✓ | 3 users |
/posts |
✓ | 8 posts |
/comments |
✓ | 12 comments |
/albums |
✗ | |
/photos |
✗ | |
/todos |
✗ |
-
/users
GET
/users
GET
/users/1
GET
/users/1/posts
POST
/users
PUT
/users/1
PATCH
/users/1
DELETE
/users/1
-
/posts
GET
/posts
GET
/posts/1
GET
/posts/1/comments
POST
/posts
PUT
/posts/1
PATCH
/posts/1
DELETE
/posts/1
-
/comments
GET
/comments
GET
/comments/1
GET
/comments/?postId=1
POST
/comments
PUT
/comments/1
PATCH
/comments/1
DELETE
/comments/1