-
Notifications
You must be signed in to change notification settings - Fork 18
buildin_endpoints_get_editor
Marcel Kloubert edited this page Feb 10, 2017
·
1 revision
Home >> Build-in endpoints >> [GET] /api/editor
Accesses resources of the editor (tab).
GET /api/editor
Possible response:
Content-type: application/json; charset=utf-8
Content-encoding: gzip
X-Vscode-Restapi: 1.0.0
Date: Fri, 10 Feb 2017 00:02:04 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{
"code": 0,
"data": {
"content": "<html>\r\n \r\nHello, guys!\r\n\r\n</html>",
"file": {
"mime": "text/html",
"name": "test.html",
"path": "/api/workspace/test.html"
},
"isDirty": true,
"isUntitled": false,
"lang": "html",
"lines": 5,
"openPath": "/api/editor/test.html"
}
}
Code | Description |
---|---|
404 |
No editor is open. |