Skip to content

Commit

Permalink
Update /simple-payments/openapi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
worker committed May 15, 2024
1 parent e78a2cb commit 4400134
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion simple-payments/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,15 @@ paths:
- name: chargeId
in: path
required: true
style: simple
explode: false
schema:
type: string
format: uuid
example: 1c777b16-2a24-47c1-8b24-a38cf96c66e0
responses:
"200":
description: Get charge by ID
description: Get charges by chargeId. - Get charge by ID
content:
application/json:
schema:
Expand Down Expand Up @@ -193,3 +195,57 @@ paths:
"created": "2023-09-03T10:31:22Z",
"status": "pending"
}
/customers/{customerId}:
put:
description: Put customers by customerId.
operationId: putCustomersByCustomerId
parameters:
- name: customerId
in: path
required: true
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
required:
- name
type: object
properties:
name:
type: string
example: Phebe Lehner
examples:
Update customer:
value: |-
{
"name" : "Mickey Stoltenberg"
}
required: true
responses:
"200":
description: Update customer
content:
application/json:
schema:
required:
- id
- name
type: object
properties:
id:
type: string
example: 1c777b16-2a24-47c1-8b24-a38cf96c66e0
name:
type: string
example: Tom
x-wiremock-hash: -1504792622
examples:
Update customer:
value: |
{
"id": "1c777b16-2a24-47c1-8b24-a38cf96c66e0",
"name": "Tom"
}

0 comments on commit 4400134

Please sign in to comment.