Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Commit

Permalink
Add RuleSet validation endpoint (in swagger). (#49)
Browse files Browse the repository at this point in the history
* Add RuleSet validation endpoint.

* Include namespace name as param for validation

* Update to remove list of RuleSets

* Remove unecessary namespace param

* Add namespaceID param and change to PUT

* Change endpoint back to POST

* Update endpoint path

* Address review comments

* Updates validate enpdoint summary
  • Loading branch information
m-sandusky committed Jan 12, 2018
1 parent 09cd37e commit 1441ef1
Showing 1 changed file with 54 additions and 1 deletion.
55 changes: 54 additions & 1 deletion public/r2/v1/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,59 @@
}
}
},
"/namespaces/{namespaceID}/ruleset/validate": {
"post": {
"tags": [
"namespaces"
],
"summary": "Performs validation for a namespace's ruleset.",
"operationId": "validateRuleSet",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"in": "path",
"name": "namespaceID",
"description": "The name of the namespace",
"type": "string",
"required": true
},
{
"in": "body",
"name": "ruleset",
"description": "The ruleset to validate.",
"required": true,
"schema": {
"$ref": "#/definitions/RuleSet"
}
}
],
"responses": {
"200": {
"description": "The ruleset is valid.",
"schema": {
"$ref": "#/definitions/ApiResponse"
}
},
"400": {
"description": "The ruleset is invalid.",
"schema": {
"$ref": "#/definitions/ApiResponse"
}
},
"500": {
"description": "Something went horribly wrong",
"schema": {
"$ref": "#/definitions/ApiResponse"
}
}
}
}
},
"/namespaces/{namespaceID}/mapping-rules": {
"post": {
"tags": [
Expand Down Expand Up @@ -957,4 +1010,4 @@
}
}
}
}
}

0 comments on commit 1441ef1

Please sign in to comment.