Skip to content

Commit

Permalink
Parametrize resource path with 'version' parameter
Browse files Browse the repository at this point in the history
Add parameter 'name' to update operation
  • Loading branch information
Ebbe Elsborg committed Jun 21, 2017
1 parent 2e67319 commit 69bce1a
Showing 1 changed file with 38 additions and 3 deletions.
41 changes: 38 additions & 3 deletions scripts/thirdpartypaths.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/apis/{fqdn}/v1/{resource}": {
"/apis/{fqdn}/{version}/{resource}": {
"get": {
"operationId": "listThirdPartyResource",
"summary": "Gets Resources",
Expand All @@ -22,6 +22,13 @@
"description": "The Third party Resource fqdn",
"type": "string"
},
{
"name": "version",
"in": "path",
"required": true,
"description": "The Third party Resource version",
"type": "string"
},
{
"name": "resource",
"in": "path",
Expand All @@ -40,7 +47,7 @@
}
}
},
"/apis/{fqdn}/v1/namespaces/{namespace}/{resource}": {
"/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}": {
"post": {
"operationId": "createThirdPartyResource",
"summary": "Create a Resource",
Expand All @@ -63,6 +70,13 @@
"description": "The Third party Resource fqdn",
"type": "string"
},
{
"name": "version",
"in": "path",
"required": true,
"description": "The Third party Resource version",
"type": "string"
},
{
"name": "resource",
"in": "path",
Expand Down Expand Up @@ -90,7 +104,7 @@
}
}
},
"/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}": {
"/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name}": {
"get": {
"operationId": "getThirdPartyResource",
"summary": "Gets a specific Resource",
Expand Down Expand Up @@ -120,6 +134,13 @@
"description": "The Third party Resource fqdn",
"type": "string"
},
{
"name": "version",
"in": "path",
"required": true,
"description": "The Third party Resource version",
"type": "string"
},
{
"name": "resource",
"in": "path",
Expand Down Expand Up @@ -199,13 +220,27 @@
"description": "The Resource's namespace",
"type": "string"
},
{
"name": "name",
"in": "path",
"required": true,
"description": "The Resource's name",
"type": "string"
},
{
"name": "fqdn",
"in": "path",
"required": true,
"description": "The Third party Resource fqdn",
"type": "string"
},
{
"name": "version",
"in": "path",
"required": true,
"description": "The Third party Resource version",
"type": "string"
},
{
"name": "resource",
"in": "path",
Expand Down

0 comments on commit 69bce1a

Please sign in to comment.