Skip to content

Commit 11c7e95

Browse files
committed
add get-languages to rest-api.md
Signed-off-by: Maxim Sukharev <maxim@sourced.tech>
1 parent d7d57c5 commit 11c7e95

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/rest-api.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,3 +286,27 @@ curl -X POST \
286286
}
287287
}
288288
```
289+
290+
## GET /get-languages
291+
292+
Returns programming language supported by bblfsh server.
293+
294+
```bash
295+
curl -X GET http://localhost:8080/get-languages
296+
```
297+
298+
```json
299+
{
300+
"status": 200,
301+
"data": [
302+
{ "id": "python", "name": "Python" },
303+
{ "id": "java", "name": "Java" },
304+
{ "id": "javascript", "name": "JavaScript" },
305+
{ "id": "bash", "name": "Bash" },
306+
{ "id": "ruby", "name": "Ruby" },
307+
{ "id": "go", "name": "Go" },
308+
{ "id": "php", "name": "PHP" }
309+
]
310+
}
311+
312+
```

0 commit comments

Comments
 (0)