Skip to content

Commit

Permalink
Merge pull request #513 from XeroAPI/fixes-create-task-response-type
Browse files Browse the repository at this point in the history
Fixes create task response type
  • Loading branch information
RettBehrens authored Sep 13, 2022
2 parents 52bcc01 + 49fdfbd commit ed329d0
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 17 deletions.
2 changes: 1 addition & 1 deletion xero-app-store.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.29.2"
version: "2.29.3"
title: Xero AppStore API
description: These endpoints are for Xero Partners to interact with the App Store Billing platform
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero-finance.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.29.2"
version: "2.29.3"
title: Xero Finance API
description: The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero-identity.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.29.2"
version: "2.29.3"
title: Xero OAuth 2 Identity Service API
description: These endpoints are related to managing authentication tokens and identity for Xero API
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero-payroll-au.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: '2.29.2'
version: '2.29.3'
title: 'Xero Payroll AU API'
description: 'This is the Xero Payroll API for orgs in Australia region.'
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero-payroll-nz.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: '2.29.2'
version: '2.29.3'
title: 'Xero Payroll NZ'
description: 'This is the Xero Payroll API for orgs in the NZ region.'
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero-payroll-uk.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: '2.29.2'
version: '2.29.3'
title: 'Xero Payroll UK'
description: 'This is the Xero Payroll API for orgs in the UK region.'
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
46 changes: 39 additions & 7 deletions xero-projects.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.29.2"
version: "2.29.3"
title: Xero Projects API
description: This is the Xero Projects API
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down Expand Up @@ -265,7 +265,7 @@ paths:
format: uuid
responses:
'200':
description: OK/success, returns a list of project objects
description: OK/success, returns the specified project object
content:
application/json:
schema:
Expand Down Expand Up @@ -437,7 +437,7 @@ paths:
example: 100
responses:
'200':
description: OK/success, returns a list of project objects
description: OK/success, returns a list of project users
content:
application/json:
schema:
Expand Down Expand Up @@ -583,8 +583,40 @@ paths:
}'
responses:
'201':
description: OK/Success - return response 201 no content
x-isEmpty: true
description: OK/success, returns the new task object
content:
application/json:
schema:
$ref: '#/components/schemas/Task'
example: '{
"name": "Demolition",
"rate": {
"currency": "AUD",
"value": 20
},
"chargeType": "TIME",
"status": "ACTIVE",
"estimateMinutes": 12000,
"taskId": "00000000-0000-0000-0000-000000000000",
"projectId": "00000000-0000-0000-0000-000000000000",
"totalMinutes": 300,
"totalAmount": {
"currency": "AUD",
"value": 100
},
"minutesToBeInvoiced": 300,
"minutesInvoiced": 0,
"nonChargeableMinutes": 0,
"fixedMinutes": 0,
"amountToBeInvoiced": {
"currency": "AUD",
"value": 100
},
"amountInvoiced": {
"currency": "AUD",
"value": 0
}
}'
'400':
$ref: '#/components/responses/400Error'
/Projects/{projectId}/Tasks/{taskId}:
Expand Down Expand Up @@ -617,7 +649,7 @@ paths:
format: uuid
responses:
'200':
description: OK/success, returns a list of task objects
description: OK/success, returns the specified task object
content:
application/json:
schema:
Expand Down Expand Up @@ -933,7 +965,7 @@ paths:
format: uuid
responses:
'200':
description: OK/success, returns a single time entry
description: OK/success, returns the specified time entry
content:
application/json:
schema:
Expand Down
2 changes: 1 addition & 1 deletion xero_accounting.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: Xero Accounting API
version: "2.29.2"
version: "2.29.3"
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
contact:
name: "Xero Platform Team"
Expand Down
2 changes: 1 addition & 1 deletion xero_assets.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.29.2"
version: "2.29.3"
title: Xero Assets API
description: The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero_bankfeeds.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.29.2"
version: "2.29.3"
title: Xero Bank Feeds API
description: The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero.
If you're an existing financial services partner that wants access, contact your local Partner Manager.
Expand Down
2 changes: 1 addition & 1 deletion xero_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ servers:
url: https://api.xero.com/files.xro/1.0/
info:
title: Xero Files API
version: "2.29.2"
version: "2.29.3"
description: "These endpoints are specific to Xero Files API"
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
contact:
Expand Down

0 comments on commit ed329d0

Please sign in to comment.