Skip to main content
POST
/
github
/
glob
Github Glob
curl --request POST \
  --url https://apigcp.trynia.ai/v2/github/glob \
  --header 'Content-Type: application/json' \
  --data '
{
  "repository": "<string>",
  "pattern": "<string>",
  "ref": "HEAD"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Body

application/json
repository
string
required

Repository in owner/repo format

pattern
string
required

Glob pattern (e.g., '.py', 'src/**/.ts')

ref
string
default:HEAD

Branch, tag, or commit SHA

Response

Successful Response