Parametrize resource path with 'version' parameter
Add parameter 'name' to update operation
This commit is contained in:
parent
2e67319b97
commit
69bce1aeb2
@ -1,5 +1,5 @@
|
||||
{
|
||||
"/apis/{fqdn}/v1/{resource}": {
|
||||
"/apis/{fqdn}/{version}/{resource}": {
|
||||
"get": {
|
||||
"operationId": "listThirdPartyResource",
|
||||
"summary": "Gets Resources",
|
||||
@ -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",
|
||||
@ -40,7 +47,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/apis/{fqdn}/v1/namespaces/{namespace}/{resource}": {
|
||||
"/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}": {
|
||||
"post": {
|
||||
"operationId": "createThirdPartyResource",
|
||||
"summary": "Create a Resource",
|
||||
@ -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",
|
||||
@ -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",
|
||||
@ -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",
|
||||
@ -199,6 +220,13 @@
|
||||
"description": "The Resource's namespace",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"description": "The Resource's name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fqdn",
|
||||
"in": "path",
|
||||
@ -206,6 +234,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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user