Skip to main content
GET
/
api
/
workspaces
/
{id}
/
code
/
file-info
Code File Info
curl --request GET \
  --url http://localhost:8080/api/workspaces/{id}/code/file-info \
  --header 'Authorization: Bearer <token>'
{
  "path": "<string>",
  "size": 123,
  "lines": 123,
  "language": "<string>",
  "binary": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Query Parameters

path
string
required

Relative file path within the repo

Response

Successful Response

path
string
required
size
integer
required
lines
integer | null
language
string | null
binary
boolean
default:false