View Source REST API
NindoPhx has an REST API to access accounts and posts. The API scope is /api
.
Note: the API is currently disabled in production because I didn't have the time to fully test it to make sure it is secure enough.
open-endpoints
Open Endpoints
Open endpoints require no Authentication.
- List accounts :
GET /accounts
- Create account :
PUT /accounts
- User profile :
GET /accounts/:username
- List posts :
GET /posts
- Sinlge post :
GET /posts/:id
- Login :
POST /login
private-endpoints
Private Endpoints
These endpoint require Authentication in the form of an token. A token can be obtained via the Login API described above and as a bearer token put in the request headers.
- Modify account :
PUT /accounts/:username
- Create post :
PUT /posts