{"note":"OpenAPI conversion -- returning structured metadata","name":"codesearch-debian-net","description":"Debian Code Search","version":"1.4.0","base_url":"https://codesearch.debian.net/api/v1","endpoints":2,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Debian Code Search\n@base https://codesearch.debian.net/api/v1\n@version 1.4.0\n@auth ApiKey x-dcs-apikey in header\n@endpoints 2\n@toc search(1), searchperpackage(1)\n\n@group search\n@endpoint GET /search\n@desc Searches through source code\n@required {query: str # The search query, for example `who knows...` (literal) or `who knows\\.\\.\\.` (regular expression). See https://codesearch.debian.net/faq for more details about which keywords are supported. The regular expression flavor is RE2, see https://github.com/google/re2/blob/master/doc/syntax.txt}\n@optional {match_mode: str(literal/regexp)=regexp # Whether the query is to be interpreted as a literal (`literal`) instead of as an RE2 regular expression (`regexp`). Literal searches are faster and do not require escaping special characters, regular expression searches are more powerful.}\n@returns(200) All search results\n@errors {403: The x-dcs-apikey header was either not set at all, or contained an invalid (no longer valid?) API key. Please see https://codesearch.debian.net/apikeys/ for obtaining a key.}\n\n@endgroup\n\n@group searchperpackage\n@endpoint GET /searchperpackage\n@desc Like /search, but aggregates per package\n@required {query: str # The search query, for example `who knows...` (literal) or `who knows\\.\\.\\.` (regular expression). See https://codesearch.debian.net/faq for more details about which keywords are supported. The regular expression flavor is RE2, see https://github.com/google/re2/blob/master/doc/syntax.txt}\n@optional {match_mode: str(literal/regexp)=regexp # Whether the query is to be interpreted as a literal (`literal`) instead of as an RE2 regular expression (`regexp`). Literal searches are faster and do not require escaping special characters, regular expression searches are more powerful.}\n@returns(200) All search results\n@errors {403: The x-dcs-apikey header was either not set at all, or contained an invalid (no longer valid?) API key. Please see https://codesearch.debian.net/apikeys/ for obtaining a key.}\n\n@endgroup\n\n@end\n"}