File tree 3 files changed +31
-8
lines changed
3 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ gen: \
401
401
provisionerd/proto/provisionerd.pb.go \
402
402
site/src/api/typesGenerated.ts \
403
403
docs/admin/prometheus.md \
404
- $(wildcard coderd/apidocgen/* )
404
+ coderd/apidocs $(wildcard coderd/apidocgen/* )
405
405
.PHONY : gen
406
406
407
407
# Mark all generated files as fresh so make thinks they're up-to-date. This is
Original file line number Diff line number Diff line change @@ -10,7 +10,16 @@ const docTemplate = `{
10
10
"info": {
11
11
"description": "{{escape .Description}}",
12
12
"title": "{{.Title}}",
13
- "contact": {},
13
+ "termsOfService": "https://coder.com/legal/terms-of-service",
14
+ "contact": {
15
+ "name": "API Support",
16
+ "url": "http://coder.com",
17
+ "email": "support@coder.com"
18
+ },
19
+ "license": {
20
+ "name": "AGPL-3.0",
21
+ "url": "https://github.com/coder/coder/blob/main/LICENSE"
22
+ },
14
23
"version": "{{.Version}}"
15
24
},
16
25
"host": "{{.Host}}",
@@ -20,12 +29,12 @@ const docTemplate = `{
20
29
21
30
// SwaggerInfo holds exported Swagger Info so clients can modify it
22
31
var SwaggerInfo = & swag.Spec {
23
- Version : "" ,
24
- Host : "" ,
25
- BasePath : "" ,
32
+ Version : "1.0 " ,
33
+ Host : "dev.coder.com " ,
34
+ BasePath : "/v2 " ,
26
35
Schemes : []string {},
27
- Title : "" ,
28
- Description : "" ,
36
+ Title : "Coder API " ,
37
+ Description : "Coderd API " ,
29
38
InfoInstanceName : "swagger" ,
30
39
SwaggerTemplate : docTemplate ,
31
40
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"swagger" : " 2.0" ,
3
3
"info" : {
4
- "contact" : {}
4
+ "description" : " Coderd API" ,
5
+ "title" : " Coder API" ,
6
+ "termsOfService" : " https://coder.com/legal/terms-of-service" ,
7
+ "contact" : {
8
+ "name" : " API Support" ,
9
+ "url" : " http://coder.com" ,
10
+ "email" : " support@coder.com"
11
+ },
12
+ "license" : {
13
+ "name" : " AGPL-3.0" ,
14
+ "url" : " https://github.com/coder/coder/blob/main/LICENSE"
15
+ },
16
+ "version" : " 1.0"
5
17
},
18
+ "host" : " dev.coder.com" ,
19
+ "basePath" : " /v2" ,
6
20
"paths" : {}
7
21
}
You can’t perform that action at this time.
0 commit comments