From 9f98f393a7c4a4743a6ba9ba78be0c12baf6b8dc Mon Sep 17 00:00:00 2001 From: JeffreyHuang06 <59666651+JeffreyHuang06@users.noreply.github.com> Date: Wed, 28 Apr 2021 00:16:29 -0400 Subject: [PATCH] Update readme.md (#226) changed api path from v1 to v2 --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 54a880e..38bad62 100644 --- a/readme.md +++ b/readme.md @@ -170,9 +170,9 @@ The container exposes an API on port 2000 by default. This is used by the CLI to carry out running jobs and package management. #### Runtimes Endpoint -`GET /api/v1/runtimes` +`GET /api/v2/runtimes` This endpoint will return the supported languages along with the current version and aliases. To execute -code for a particular language using the `/api/v1/execute` endpoint, either the name or one of the aliases must +code for a particular language using the `/api/v2/execute` endpoint, either the name or one of the aliases must be provided, along with the version. Multiple versions of the same language may be present at the same time, and may be selected when running a job. ```json @@ -199,7 +199,7 @@ Content-Type: application/json ``` #### Execute Endpoint -`POST /api/v1/execute` +`POST /api/v2/execute` This endpoint requests execution of some arbitrary code. - `language` (**required**) The language to use for execution, must be a string and must be installed. - `version` (**required**) The version of the language to use for execution, must be a string containing a SemVer selector for the version or the specific version number to use.