File tree 7 files changed +17
-52
lines changed
scripts/apidocgen/markdown-template
7 files changed +17
-52
lines changed Original file line number Diff line number Diff line change @@ -2796,6 +2796,7 @@ const docTemplate = `{
2796
2796
}
2797
2797
},
2798
2798
"codersdk.PostWorkspaceAgentVersionRequest": {
2799
+ "description": "x-apidocgen:skip",
2799
2800
"type": "object",
2800
2801
"properties": {
2801
2802
"version": {
Original file line number Diff line number Diff line change 2516
2516
}
2517
2517
},
2518
2518
"codersdk.PostWorkspaceAgentVersionRequest" : {
2519
+ "description" : " x-apidocgen:skip" ,
2519
2520
"type" : " object" ,
2520
2521
"properties" : {
2521
2522
"version" : {
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ type WorkspaceAgentConnectionInfo struct {
115
115
}
116
116
117
117
// @typescript-ignore PostWorkspaceAgentVersionRequest
118
+ // @Description x-apidocgen:skip
118
119
type PostWorkspaceAgentVersionRequest struct {
119
120
Version string `json:"version"`
120
121
}
Original file line number Diff line number Diff line change @@ -437,38 +437,3 @@ curl -X POST http://coder-server:8080/api/v2/workspaceagents/me/report-stats \
437
437
| 200 | [ OK] ( https://tools.ietf.org/html/rfc7231#section-6.3.1 ) | OK | [ codersdk.AgentStatsResponse] ( schemas.md#codersdkagentstatsresponse ) |
438
438
439
439
To perform this operation, you must be authenticated by means of one of the following methods: ** CoderSessionToken** .
440
-
441
- ## Submit workspace agent version
442
-
443
- ### Code samples
444
-
445
- ``` shell
446
- # Example request using curl
447
- curl -X POST http://coder-server:8080/api/v2/workspaceagents/me/version \
448
- -H ' Content-Type: application/json' \
449
- -H ' Coder-Session-Token: API_KEY'
450
- ```
451
-
452
- ` POST /workspaceagents/me/version `
453
-
454
- > Body parameter
455
-
456
- ``` json
457
- {
458
- "version" : " string"
459
- }
460
- ```
461
-
462
- ### Parameters
463
-
464
- | Name | In | Type | Required | Description |
465
- | ------ | ---- | ------------------------------------------------------------------------------------------------ | -------- | --------------- |
466
- | ` body ` | body | [ codersdk.PostWorkspaceAgentVersionRequest] ( schemas.md#codersdkpostworkspaceagentversionrequest ) | true | Version request |
467
-
468
- ### Responses
469
-
470
- | Status | Meaning | Description | Schema |
471
- | ------ | ------------------------------------------------------- | ----------- | ------ |
472
- | 200 | [ OK] ( https://tools.ietf.org/html/rfc7231#section-6.3.1 ) | OK | |
473
-
474
- To perform this operation, you must be authenticated by means of one of the following methods: ** CoderSessionToken** .
Original file line number Diff line number Diff line change @@ -2276,20 +2276,6 @@ Parameter represents a set value for the scope.
2276
2276
| ` source_scheme ` | ` none ` |
2277
2277
| ` source_scheme ` | ` data ` |
2278
2278
2279
- ## codersdk.PostWorkspaceAgentVersionRequest
2280
-
2281
- ``` json
2282
- {
2283
- "version" : " string"
2284
- }
2285
- ```
2286
-
2287
- ### Properties
2288
-
2289
- | Name | Type | Required | Restrictions | Description |
2290
- | --------- | ------ | -------- | ------------ | ----------- |
2291
- | ` version ` | string | false | | |
2292
-
2293
2279
## codersdk.PostWorkspaceAppHealthsRequest
2294
2280
2295
2281
``` json
Original file line number Diff line number Diff line change 92
92
93
93
> This page is incomplete, stay tuned.
94
94
95
- {{ for (var s in data.components.schemas) { }}
96
- {{ var origSchema = data.components.schemas[s]; }}
97
- {{ var schema = data.api.components.schemas[s]; }}
95
+ {{ for (var s in data.components.schemas) {
96
+ var origSchema = data.components.schemas[s];
97
+ var schema = data.api.components.schemas[s];
98
+
99
+ if (schema.description && schema.description.startsWith(" x-apidocgen:skip" )) {
100
+ continue;
101
+ }
102
+ }}
98
103
99
104
{{= data.tags.section }}
100
105
# # {{=s}}
Original file line number Diff line number Diff line change 18
18
19
19
# # {{= data.operationUniqueName}}
20
20
21
+ {{
22
+ if (data.operation['x-apidocgen'] && data.operation['x-apidocgen'].skip) {
23
+ return " " ;
24
+ }
25
+ }}
26
+
21
27
{{ data.methodUpper = data.method.verb.toUpperCase(); }}
22
28
{{ data.url = data.utils.slashes(data.baseUrl + data.method.path); }}
23
29
{{ data.parameters = data.operation.parameters; }}
You can’t perform that action at this time.
0 commit comments