Skip to content

Commit

Permalink
feat(doc): basic server REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz committed Jun 21, 2023
1 parent bc4c132 commit a757d17
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/source/API.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.. _api:

########################
JoliGEN server REST API
########################

*********
Training
*********

Creates a training process with name `name`

- *Method* `POST`
- *URL* `/train/:name`
- *URL Params*
- `name:string`: name of training process
- *Response*
- *Success:*:
- Code: 201
- Content: `{ "message": "ok", "name": "train_1" }`

- Get all training processes

`GET /train`

- Get training status

`GET /train/name`

- Stop training process

`DELETE /train/name`

0 comments on commit a757d17

Please sign in to comment.