You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gisty is a web application responsible for allowing create, read, update, and delete operations on markdown files uploaded to the service or to file creates within the service through a web UI.
API Endpoints
Create a Markdown File
Creates a new markdown file in the service.
POST /api/v1/files
Content-Type: multipart/form-data
Request Parameters:
file: the markdown file to upload
Response:
Status Code: 201 Created
Location: /api/v1/files/{file_id}
Read a Markdown File
Retrieves an existing markdown file from the service.
GET /api/v1/files/{file_id}
Response:
Status Code: 200 OK
Content-Type: text/markdown
Content: the contents of the markdown file
Update a Markdown File
Updates an existing markdown file in the service.
PUT /api/v1/files/{file_id}
Content-Type: multipart/form-data
Request Parameters:
file: the new markdown file to upload
Response:
Status Code: 204 No Content
Delete a Markdown File
Deletes an existing markdown file from the service.
DELETE /api/v1/files/{file_id}
Response:
Status Code: 204 No Content
Error Responses
If an error occurs while processing a request, the API will return an error response with an appropriate status code and message.
Example Error Response
Status Code: 404 Not Found
Content-Type: application/json
{
"error": "File not found"
}
Authentication
The API requires authentication to access any of the endpoints. The authentication credentials should be sent with each request in the Authorization header using the Bearer token authentication scheme.
Example Authorization Header
Authorization: Bearer
The text was updated successfully, but these errors were encountered:
API Specification for "Gisty"
Overview
Gisty is a web application responsible for allowing create, read, update, and delete operations on markdown files uploaded to the service or to file creates within the service through a web UI.
API Endpoints
Create a Markdown File
Creates a new markdown file in the service.
POST /api/v1/files
Content-Type: multipart/form-data
Request Parameters:
file: the markdown file to upload
Response:
Status Code: 201 Created
Location: /api/v1/files/{file_id}
Read a Markdown File
Retrieves an existing markdown file from the service.
GET /api/v1/files/{file_id}
Response:
Status Code: 200 OK
Content-Type: text/markdown
Content: the contents of the markdown file
Update a Markdown File
Updates an existing markdown file in the service.
PUT /api/v1/files/{file_id}
Content-Type: multipart/form-data
Request Parameters:
file: the new markdown file to upload
Response:
Status Code: 204 No Content
Delete a Markdown File
Deletes an existing markdown file from the service.
DELETE /api/v1/files/{file_id}
Response:
Status Code: 204 No Content
Error Responses
If an error occurs while processing a request, the API will return an error response with an appropriate status code and message.
Example Error Response
Status Code: 404 Not Found
Content-Type: application/json
{
"error": "File not found"
}
Authentication
The API requires authentication to access any of the endpoints. The authentication credentials should be sent with each request in the Authorization header using the Bearer token authentication scheme.
Example Authorization Header
Authorization: Bearer
The text was updated successfully, but these errors were encountered: