Repository navigation
API Endpoints Table
Ethan edited this page Oct 12, 2026
·
4 revisions
The endpoints supplied by the API are specified in the table below.
| HTTP Method | API Endpoint | Required Body Properties (JSON) | Backend Request Equivalent | Description | Expected HTTP Response Code(s) |
|---|---|---|---|---|---|
POST |
/api/stash |
{ id: number, title: string, desc: string } |
ADD|{id}|{title}|{desc} |
Creates a new stash with the id, title, and desc supplied by the HTTP request's JSON body. |
200 if the addition is successful, 400 any of the fields are empty, or 500 if the request fails otherwise. |
GET |
/api/stash/{id} |
{ id: number } |
READ|{id} |
Finds a specific stash entry by its numeric ID. |
200 if the stash entry is found, 404 if the stash entry is not found, or 500 if the request fails otherwise |
PUT |
/api/stash/{id} |
{ id: number, title: string, desc: string } |
UPD|{id}|{title}|{desc} |
Replaces an existing stash entry with new content |
204 if the update succeeds, 400 if any of the fields are empty, or 500 if the request fails otherwise |
DELETE |
/api/stash/{id} |
{ id: number } |
DEL|{id} |
Deletes an existing stash entry by its ID. |
204 if the update succeeds, 404 if the stash entry is not found, or 500 if the request fails otherwise |