Skip to content

Commit

Permalink
chore: add swagger api documentation for the template api
Browse files Browse the repository at this point in the history
  • Loading branch information
0utplay committed Jul 9, 2023
1 parent d452727 commit c9bd3e6
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions modules/rest/src/main/resources/documentation/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3235,6 +3235,55 @@
}
}
},
"/template/{storage}/{prefix}/{name}/directory" : {
"delete" : {
"parameters" : [ {
"name" : "storage",
"in" : "path",
"required" : true,
"schema" : {
"type" : "string"
}
}, {
"name" : "prefix",
"in" : "path",
"required" : true,
"schema" : {
"type" : "string"
}
}, {
"name" : "name",
"in" : "path",
"required" : true,
"schema" : {
"type" : "string"
}
}, {
"name" : "path",
"in" : "query",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"tags" : [ "Templates" ],
"summary" : "Deletes a directory and all its contents recursively from a template",
"responses" : {
"200" : {
"$ref" : "#/components/responses/Success"
},
"400" : {
"$ref" : "#/components/responses/BadRequest"
},
"401" : {
"$ref" : "#/components/responses/Unauthorized"
},
"403" : {
"$ref" : "#/components/responses/Forbidden"
}
}
}
},
"/serviceversion" : {
"get" : {
"tags" : [ "Service Versions" ],
Expand Down

0 comments on commit c9bd3e6

Please sign in to comment.