Files
toho-jose/README.md
2023-06-04 22:08:09 +02:00

10 lines
564 B
Markdown

![jose-banner](https://github.com/JanGross/toho-jose/assets/13641301/dd27779f-cab7-4274-b7ea-d125327ff991)
## Render-Job server for Toho-Miku
## Endpoints:
- [GET] /
- Returns a string "Job handling server"
- [GET] /jobs
- Returns a JSON object containing a count and items for the `queued`, `waiting`, and `finished` jobs.
- [POST] /jobs
- Accepts a JSON object in the request body, generates a unique job ID using an MD5 hash, and adds the job to the `queued` jobs object. The generated job ID and a status code of `200` are returned in the response.