API hosted live here
- Login
- Registration
- CRUD operations on posts
- JWT Authentication
- Data cannot be accessed with JWT token which can be obtained at the time of registration and also when logging in.
- To edit/delete a post, go to BASE_URL/<id_num>.
- Postman works best for API testing.
- For accessing/creating posts via JWT token, the header should be {"Authorization" : "JWT <token_code>"}.
- Access all posts via GET request to here and for creating a new post POST request to here with the json data as {"title":"whatever title", "body":"whatever body"} and also the header as mentioned before.
- For registration, the POST request to here should have json of the form - {"username":"whatever username", "password":"whatever password", "password2":"same as whatever password"}.
- For login, the POST request to here with the body as {"username":"xyz","password":"pwd123"} has to be provided.
- For refreshing token, POST request to here with body as {"token":"kfsbgkjfgfv....."} has to be provided.
Shaurya Vijayvargiya