Version 1.0 | Base URL: http://localhost:8080
Most endpoints require JWT authentication. Obtain a token by logging in:
POST /public/login { "username": "TOM", "password": "TOM" }
Include the token in the Authorization header:
Authorization: Bearer Token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...
Endpoints that don't require authentication
GET http://localhost:8080/public/health-check
OK
POST http://localhost:8080/public/signup
{ "username": "TOM", "email_address": "tom@gmail.com", "password": "TOM" }
Account created
GET http://localhost:8080/public/get-email
GET http://localhost:8080/public/weather-check/mumbai
Path Parameter: city
- Name of the city to check weather for
POST http://localhost:8080/public/login
{ "username": "TOM", "password": "TOM" }
{ "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..." }
Endpoints for user management (require JWT authentication)
DELETE http://localhost:8080/user Authorization: Bearer Token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...
GET http://localhost:8080/user Authorization: Bearer Token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...
PUT http://localhost:8080/user Authorization: Bearer Token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...
{ "username": "TOM", "email_address": "t0m01@gmail.com", "password": "TOM" }
Endpoints for profile management (require JWT authentication)
POST http://localhost:8080/profiles Authorization: Bearer Token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...
{ "title": "Sicret", "content": "You are king." }
DELETE http://localhost:8080/profiles/684212eace8b3cb77f856ae9 Authorization: Bearer Token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...
Path Parameter: id
- The ID of the profile to delete