Use these with VS Code REST Client or JetBrains HTTP Client.
- api.http – Full flow in one file: health → auth (login named) → roles. Token from login is reused for authenticated requests. Best for running the whole flow in order.
- health.http – Health check only.
- auth.http – Signup, login, refresh, logout, me, my-roles. Login is named so
me/refresh/logout/my-rolesin the same file use the returned token. - roles.http – Role check, assign, revoke. Requires a valid
access_token: run Auth: Login inauth.http, copytokens.access_tokenfrom the response, and set@accessTokenat the top ofroles.http. - languages.http – List, create, get by id/code. Set
@accessTokenafter login. - organizations.http – List, create, get by id/slug, add member. Set
@accessTokenafter login. - phases.http – Create, list (all or by project), get, update, delete. Also: add, list, and remove dependencies. Set
@accessTokenafter login; replacePHASE_ID,PROJECT_ID,OTHER_PHASE_IDwith real IDs. - projects.http – List, create, get by id, update location, grant user/org access. Set
@accessTokenafter login; replaceLANGUAGE_ID,PROJECT_ID,ORGANIZATION_ID,USER_IDwith real IDs. - rag.http – Upload
.mddocument, query, list documents, delete document. Set@accessTokenafter login; replaceDOC_IDwith real id from upload/list response. - errors.http – Examples that trigger 401, 409, etc.
Default is http://localhost:8000. Change @baseUrl in each file if your server runs elsewhere.
- Run Auth: Login in
auth.http(or the login request inapi.http). - Copy
access_tokenfrom the response body. - In
roles.http, set@accessToken = <paste_token_here>at the top. - Run any request in
roles.http.