mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
fix(ci): dredd test for template endpoint
This commit is contained in:
parent
c03e66fdfe
commit
f8dab13c4a
@ -95,6 +95,7 @@ func main() {
|
||||
addCapabilities([]string{"repository", "inventory", "environment"})
|
||||
})
|
||||
|
||||
h.Before("project > /api/project/{project_id}/templates/{template_id} > Get template > 200 > application/json", capabilityWrapper("template"))
|
||||
h.Before("project > /api/project/{project_id}/templates/{template_id} > Updates template > 204 > application/json", capabilityWrapper("template"))
|
||||
h.Before("project > /api/project/{project_id}/templates/{template_id} > Removes template > 204 > application/json", capabilityWrapper("template"))
|
||||
|
||||
|
10
api-docs.yml
10
api-docs.yml
@ -1153,7 +1153,9 @@ paths:
|
||||
200:
|
||||
description: template
|
||||
schema:
|
||||
$ref: "#/definitions/Template"
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/Template"
|
||||
post:
|
||||
tags:
|
||||
- project
|
||||
@ -1176,14 +1178,12 @@ paths:
|
||||
get:
|
||||
tags:
|
||||
- project
|
||||
summary: Get template object
|
||||
summary: Get template
|
||||
responses:
|
||||
200:
|
||||
description: template object
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/Template"
|
||||
$ref: "#/definitions/Template"
|
||||
put:
|
||||
tags:
|
||||
- project
|
||||
|
2
go.mod
2
go.mod
@ -40,7 +40,7 @@ require (
|
||||
github.com/radovskyb/watcher v1.0.7 // indirect
|
||||
github.com/russross/blackfriday v1.5.2
|
||||
github.com/sirupsen/logrus v1.4.2 // indirect
|
||||
github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa // indirect
|
||||
github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa
|
||||
github.com/spf13/cobra v0.0.5 // indirect
|
||||
github.com/ziutek/mymysql v1.5.4 // indirect
|
||||
golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340
|
||||
|
Loading…
Reference in New Issue
Block a user