cURL
curl --request GET \ --url http://localhost:8080/api/workspaces/{id}/code/tree \ --header 'Authorization: Bearer <token>'
[ { "name": "<string>", "type": "file", "path": "<string>", "size": 123 } ]
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Relative path within the repo (default: root)
Directory depth (default: 1)
1 <= x <= 10
Successful Response
file
directory