https://github.com/oscvrhrr/blog-api
My blog, built a React frontend & Express REST api
https://github.com/oscvrhrr/blog-api
api json jwt radix react rest
Last synced: 2 months ago
JSON representation
My blog, built a React frontend & Express REST api
- Host: GitHub
- URL: https://github.com/oscvrhrr/blog-api
- Owner: oscvrhrr
- Created: 2024-10-04T18:04:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-22T14:41:38.000Z (over 1 year ago)
- Last Synced: 2025-02-15T18:55:52.194Z (over 1 year ago)
- Topics: api, json, jwt, radix, react, rest
- Language: JavaScript
- Homepage: https://blog-api-six-orpin.vercel.app
- Size: 366 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Auth
| Description | Method | URL |
| ----------- | ----------- | ---- |
| login user | POST | /auth/login |
| sign up user | POST | /auth/signup|
## Users
| Description | Method | URL |
| ----------- | ----------- | ---- |
| get all users | GET | /users
| get current user data | GET | /users/me |
| get a specific user | GET | /users/:id |
| get a users posts | GET | /users/:id/posts
| delete account | DELETE | /users/:id |
## Posts
| Description | Method | URL |
| ----------- | ----------- | ---- |
| create a post | POST | /posts |
| comment on post | POST | /posts/:id/comments|
| get all posts | GET | /posts
| get a post | GET | /posts/:id |
| delete a post | DELETE | /posts/:id/ |