From c5375e03d7b0fa59110168b7c5ff439a2d3d686a Mon Sep 17 00:00:00 2001 From: Rafael Rubbioli Date: Mon, 19 Oct 2020 16:16:55 -0300 Subject: [PATCH] fix review --- docs/openapi.yaml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/docs/openapi.yaml b/docs/openapi.yaml index edc2f21e9..7f1cc0359 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -181,7 +181,7 @@ paths: /resources/{instance}/bind-app: parameters: - - name: name + - name: instance in: path description: Instance name required: true @@ -227,7 +227,7 @@ paths: /resources/{instance}/bind: parameters: - - name: name + - name: instance in: path description: Instance name required: true @@ -235,22 +235,26 @@ paths: type: string post: + operationId: BindInstance + deprecated: true summary: Bind Unit - description: The service endpoint binds a unit to the service instance + description: Not used, just to follow Tsuru Service API spec tags: - rpaas responses: - '201': - description: Unit successfully bound to the service instance + '200': + description: Nothing happens delete: + operationId: UnbindInstance + deprecated: true summary: Unbind Unit - description: The service endpoint unbinds the unit from the service instance + description: Not used, just to follow Tsuru Service API spec tags: - rpaas responses: '200': - description: Unit successfully unbound from service instance + description: Nothing happens /resources/{instance}/info: get: @@ -453,12 +457,24 @@ components: properties: app-name: type: string + example: app1 app-host: type: string + example: app1.tsuru.example.com user: type: string eventid: type: string + app-hosts: + type: array + items: + type: string + example: app1.tsuru.example.com + app-internal-hosts: + type: array + items: + type: string + example: localService.namespace Block: type: object