mirror of
https://github.com/coder/coder.git
synced 2026-11-26 07:46:04 +08:00
* WIP * Gen * WIP * chi swagger * WIP * WIP * WIP * GetWorkspaces * GetWorkspaces * Markdown * Use widdershins * WIP * WIP * WIP * Markdown template * Fix: makefile * fmt * Fix: comment * Enable swagger conditionally * fix: site * Default false * Flag tests * fix * fix * template fixes * Fix * Fix * Fix * WIP * Formatted * Cleanup * Templates * BEGIN END SECTION * subshell exit code * Fix * Fix merge * WIP * Fix * Fix fmt * Fix * Generic api.md page * Fix merge * Link pages * Fix * Fix * Fix: links * Add icon * Write manifest file * Fix fmt * Fix: enterprise * Fix: Swagger.Enable * Fix: rename apidocs to apidoc * Fix: find -not -prune * Fix: json not available * Fix: rename Coderd API to Coder API * Fix: npm exec * Fix: api dir * Fix: by ID * Fix: string uuid * Fix: include deleted * Fix: indirect go.mod * Fix: source lib.sh * Fix: shellcheck * Fix: pushd popd * Fix: fmt * Fix: improve workspaces * Fix: swagger-enable * Fix * Fix: mention only HTTP 200 * Fix: IDs * Fix: https * Fix: icon * More APis * Fix: format swagger.json * Fix: SwaggerEndpoint * Fix: SCRIPT_DIR * Fix: PROJECT_ROOT * Fix: use code tags in schemas.md * Fix: examples * Fix: examples * Fix: improve format * Fix: date-time,enums * Fix: include_deleted * Fix: array of * Fix: parameter, response * Fix: string time or null * Workspaces: more docs * Workspaces: more docs * Fix: renderDisplayName * Fix: ActiveUserCount * Fix * Fix: typo * Templates: docs * Notice: incomplete
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
{{= data.tags.section }}
|
|
|
|
## {{= data.operationUniqueName}}
|
|
|
|
{{ data.methodUpper = data.method.verb.toUpperCase(); }}
|
|
{{ data.url = data.utils.slashes(data.baseUrl + data.method.path); }}
|
|
{{ data.parameters = data.operation.parameters; }}
|
|
{{ data.enums = []; }}
|
|
{{ data.utils.fakeProdCons(data); }}
|
|
{{ data.utils.fakeBodyParameter(data); }}
|
|
{{ data.utils.mergePathParameters(data); }}
|
|
{{ data.utils.getParameters(data); }}
|
|
|
|
{{? data.options.codeSamples || data.operation["x-code-samples"] }}
|
|
### Code samples
|
|
|
|
{{= data.utils.getCodeSamples(data)}}
|
|
{{?}}
|
|
|
|
`{{= data.methodUpper}} {{=data.method.path}}`
|
|
|
|
{{? data.operation.summary && !data.options.tocSummary}}*{{= data.operation.summary }}*{{?}}
|
|
|
|
{{? data.operation.description}}{{= data.operation.description }}{{?}}
|
|
|
|
{{? data.operation.requestBody}}
|
|
> Body parameter
|
|
|
|
{{? data.bodyParameter.exampleValues.description }}
|
|
> {{= data.bodyParameter.exampleValues.description }}
|
|
{{?}}
|
|
|
|
{{= data.utils.getBodyParameterExamples(data) }}
|
|
{{?}}
|
|
|
|
{{? data.parameters && data.parameters.length }}
|
|
{{#def.parameters}}
|
|
{{?}}
|
|
|
|
{{#def.responses}}
|
|
|
|
{{ data.security = data.operation.security ? data.operation.security : data.api.security; }}
|
|
{{? data.security && data.security.length }}
|
|
{{#def.authentication}}
|
|
{{??}}
|
|
{{#def.authentication_none}}
|
|
{{?}}
|
|
{{= data.tags.endSection }}
|