|
2 | 2 |
|
3 | 3 | This API is a Node.js server that will be running on a Linux VM. |
4 | 4 |
|
5 | | -It is composed of one endpoint: |
6 | | - |
7 | | -- `/sconify`: |
8 | | - |
9 | | - - Takes a public dockerhub image as input and a user auth token with push |
10 | | - access to the image's repo in order to push the sconified image, |
11 | | - - builds a sconified image out of it, |
12 | | - - publishes it to dockerhub with tag suffix, |
13 | | - - deploys an app contract on Bellecour. |
14 | | - |
15 | | -- `/` or any other endpoint: will return a simple text (mostly to check if the |
16 | | - server is running) |
| 5 | +It is composed of: |
| 6 | + |
| 7 | +- HTTP endpoints: |
| 8 | + |
| 9 | + - 🟢 `GET /`: will return a simple text (mostly to check if the server is |
| 10 | + running) |
| 11 | + - 🟢 `GET /health`: will return a JSON object with the health status of the |
| 12 | + server and the version of the API. |
| 13 | + - 🟠 `POST /sconify`: deprecated, use Websocket API request `SCONIFY_BUILD` |
| 14 | + instead. |
| 15 | + - 🟠 `POST /sconify/build`: deprecated, use Websocket API request |
| 16 | + `SCONIFY_BUILD` instead. |
| 17 | + |
| 18 | +- Websocket API requests: |
| 19 | + - 🟢 `SCONIFY_BUILD`: will take a dockerhub image and return a |
| 20 | + `sconifiedImage` and `appContractAddress` in the response. |
| 21 | + - Takes a public dockerhub image as input and a user auth token with push |
| 22 | + access to the image's repo in order to push the sconified image |
| 23 | + - builds a sconified image out of it |
| 24 | + - publishes it to dockerhub with tag suffix |
| 25 | + - 🟠 `SCONIFY`: deprecated, use `SCONIFY_BUILD` instead. |
17 | 26 |
|
18 | 27 | ## Prerequisites |
19 | 28 |
|
|
0 commit comments