Code Context
Get Code Context File
POST
apiKeyAuthheader
x-api-key<token>FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
idOrSlug*stringapplication/json- body
mappingId*stringrefCandidates?array<string|null>|nullpath*stringlineNumber?number||null|nullCodeContextFileRecord
application/json- response
provider*stringValue in
"github""codeberg""gitlab""bitbucket""origin"repository*stringref*string|nullpath*stringhtmlUrl*stringcontent*stringlineNumber*number||nullcurl -X POST 'https://api.faststats.dev/v0/projects/string/code-context/file' \
-H 'Content-Type: application/json' \
-d '{
"mappingId": "string",
"path": "string"
}'Example Response
{
"provider": "github",
"repository": "string",
"ref": "string",
"path": "string",
"htmlUrl": "string",
"content": "string",
"lineNumber": 0
}