Skip to content

Commit

Permalink
Merge branch 'ErrorCodesReview'
Browse files Browse the repository at this point in the history
  • Loading branch information
owenobyrne committed Feb 4, 2025
2 parents 7df5691 + 3de4708 commit 3edc9b6
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/fire-business-api-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ paths:
$ref: ./v2/paths/paymentrequests/update-paymentrequest.yaml

webhooks:
Webhook:
webhook:
$ref: ./webhooks/webhooks.yaml

components:
Expand Down
6 changes: 3 additions & 3 deletions src/v1/paths/accounts/accounts-by-ican.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ get:
application/json:
schema:
$ref: '#/components/schemas/Account'
'400':
'400':
$ref: '../../responses/unauthorised-error.yaml'
'401':
'401':
$ref: '../../responses/unauthorised-error.yaml'
'403':
'403':
$ref: '../../responses/unauthorised-error.yaml'


6 changes: 3 additions & 3 deletions src/v1/paths/accounts/accounts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ post:
application/json:
schema:
$ref: '#/components/schemas/Account'
'400':
'400':
$ref: '../../responses/unauthorised-error.yaml'
'401':
'401':
$ref: '../../responses/unauthorised-error.yaml'
'403':
'403':
$ref: '../../responses/unauthorised-error.yaml'
4 changes: 4 additions & 0 deletions src/v1/paths/apps/accesstokens.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ post:
schema:
$ref: '#/components/schemas/AccessToken'
'400':
$ref: '../../responses/unauthorised-error.yaml'
'401':
$ref: '../../responses/unauthorised-error.yaml'
'403':
$ref: '../../responses/unauthorised-error.yaml'
12 changes: 6 additions & 6 deletions src/v1/paths/apps/apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ get:
type: array
items:
$ref: '../../schemas/applications.yaml'
'400':
$ref: '../../responses/unauthorised-error.yaml'
'401':
$ref: '../../responses/unauthorised-error.yaml'
'403':
$ref: '../../responses/unauthorised-error.yaml'
'400':
$ref: '../../responses/unauthorised-error.yaml'
'401':
$ref: '../../responses/unauthorised-error.yaml'
'403':
$ref: '../../responses/unauthorised-error.yaml'
post:
summary: Create an API Application
description: This endpoint will create a new API Application on your Fire account with your chosen specified permissions. Please note that if there is no batch approval permissions included, the approval fields must be set to null.
Expand Down
1 change: 0 additions & 1 deletion src/webhooks/webhooks.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
post:
summary: Test webhook response
description: Webhooks allow you to be notified of events as they happen on your Fire accounts. The below sample response shows how a webhook from Fire will arrive at your server. See our 'API and webhooks' guide for more detailed information.
tags: API and Webhooks
requestBody:
required: true
content:
Expand Down

0 comments on commit 3edc9b6

Please sign in to comment.