chore: implement fetch all authorized templates api (#13678)

This commit is contained in:
Steven Masley
2024-06-26 07:50:32 -10:00
committed by GitHub
parent 08e728bcb2
commit 30c4b4db5c
7 changed files with 315 additions and 54 deletions

28
coderd/apidoc/docs.go generated
View File

@ -3101,6 +3101,34 @@ const docTemplate = `{
}
}
},
"/templates": {
"get": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": [
"application/json"
],
"tags": [
"Templates"
],
"summary": "Get all templates",
"operationId": "get-all-templates",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/codersdk.Template"
}
}
}
}
}
},
"/templates/{template}": {
"get": {
"security": [