Skip to content

Commit b951995

Browse files
docs: update documentation
1 parent cb9d3e2 commit b951995

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

api/README.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@
22

33
This API is a Node.js server that will be running on a Linux VM.
44

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.
1726

1827
## Prerequisites
1928

0 commit comments

Comments
 (0)