Skip to content

Commit fffc717

Browse files
authored
Merge pull request #161 from XeroAPI/sid-development
Projects, Assets and Accounting updates
2 parents 0db12c0 + e6f1003 commit fffc717

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

accounting-yaml/xero_accounting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20351,7 +20351,7 @@ components:
2035120351
- NG
2035220352
- NI
2035320353
- NL
20354-
- NO
20354+
- "NO"
2035520355
- NP
2035620356
- NR
2035720357
- NU

assets-yaml/xero_assets.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,7 @@ components:
616616
Asset:
617617
type: object
618618
required:
619-
- assetId
620619
- assetName
621-
- bookDepreciationSetting
622620
properties:
623621
assetId:
624622
type: string

projects-yaml/Xero-projects.yaml

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ paths:
2222
security:
2323
- OAuth2: [projects, projects.read]
2424
tags:
25-
- Projects
25+
- Project
2626
summary: list all projects
2727
operationId: getProjects
2828
description: Allows you to retrieve, create and update projects.
@@ -152,7 +152,7 @@ paths:
152152
security:
153153
- OAuth2: [projects.create]
154154
tags:
155-
- Projects
155+
- Project
156156
summary: create one or more new projects
157157
operationId: createProject
158158
requestBody:
@@ -247,7 +247,7 @@ paths:
247247
security:
248248
- OAuth2: [projects, projects.read]
249249
tags:
250-
- Projects
250+
- Project
251251
summary: Allows you to retrieve a single project
252252
operationId: getProject
253253
description: Allows you to retrieve a specific project
@@ -334,7 +334,7 @@ paths:
334334
security:
335335
- OAuth2: [projects.create]
336336
tags:
337-
- Projects
337+
- Project
338338
summary: update a specific project
339339
operationId: updateProject
340340
description: Allows you to update a specific projects.
@@ -369,7 +369,7 @@ paths:
369369
security:
370370
- OAuth2: [projects.create]
371371
tags:
372-
- Projects
372+
- Project
373373
summary: creates a project for the specified contact
374374
operationId: patchProject
375375
description: Allows you to update a specific projects.
@@ -405,7 +405,7 @@ paths:
405405
security:
406406
- OAuth2: [projects.read]
407407
tags:
408-
- Projects
408+
- Project
409409
summary: list all project users
410410
operationId: getProjectUsers
411411
description: Allows you to retrieve the users on a projects.
@@ -464,7 +464,7 @@ paths:
464464
security:
465465
- OAuth2: [projects, projects.read]
466466
tags:
467-
- Projects
467+
- Project
468468
summary: Allows you to retrieve a single project
469469
operationId: getTasks
470470
description: Allows you to retrieve a specific project
@@ -545,7 +545,7 @@ paths:
545545
# security:
546546
# - OAuth2: [projects, projects.read]
547547
# tags:
548-
# - Projects
548+
# - Project
549549
# summary: Allows you to create a task
550550
# operationId: createTask
551551
# description: Allows you to create a specific task
@@ -582,7 +582,7 @@ paths:
582582
security:
583583
- OAuth2: [projects, projects.read]
584584
tags:
585-
- Projects
585+
- Project
586586
summary: Allows you to retrieve a single project
587587
operationId: getTask
588588
description: Allows you to retrieve a specific project
@@ -641,7 +641,7 @@ paths:
641641
# security:
642642
# - OAuth2: [projects, projects.read]
643643
# tags:
644-
# - Projects
644+
# - Project
645645
# summary: Allows you to update a task
646646
# operationId: updateTask
647647
# description: Allows you to update a specific task
@@ -679,7 +679,7 @@ paths:
679679
# security:
680680
# - OAuth2: [projects, projects.read]
681681
# tags:
682-
# - Projects
682+
# - Project
683683
# summary: Allows you to delete a task
684684
# operationId: deleteTask
685685
# description: Allows you to delete a specific task
@@ -709,7 +709,7 @@ paths:
709709
security:
710710
- OAuth2: [projects, projects.read]
711711
tags:
712-
- Projects
712+
- Project
713713
summary: Allows you to retrieve the time entries associated with a specific project
714714
operationId: getTimeEntries
715715
description: Allows you to retrieve the time entries associated with a specific project
@@ -824,7 +824,7 @@ paths:
824824
security:
825825
- OAuth2: [projects, projects.read]
826826
tags:
827-
- Projects
827+
- Project
828828
summary: Allows you to create a task
829829
operationId: createTimeEntry
830830
description: Allows you to create a specific task
@@ -875,7 +875,7 @@ paths:
875875
security:
876876
- OAuth2: [projects, projects.read]
877877
tags:
878-
- Projects
878+
- Project
879879
summary: Allows you to get a single time entry in a project
880880
operationId: getTimeEntry
881881
description: Allows you to upget a single time entry in a project
@@ -916,7 +916,7 @@ paths:
916916
security:
917917
- OAuth2: [projects, projects.read]
918918
tags:
919-
- Projects
919+
- Project
920920
summary: Allows you to update time entry in a project
921921
operationId: updateTimeEntry
922922
description: Allows you to update time entry in a project
@@ -957,7 +957,7 @@ paths:
957957
security:
958958
- OAuth2: [projects, projects.read]
959959
tags:
960-
- Projects
960+
- Project
961961
summary: Allows you to delete a time entry
962962
operationId: deleteTimeEntry
963963
description: Allows you to delete a specific time entry
@@ -981,6 +981,20 @@ paths:
981981
description: Success - return response 204 no content
982982
x-isEmpty: true
983983
components:
984+
securitySchemes:
985+
OAuth2:
986+
type: oauth2
987+
description: For more information
988+
flows:
989+
authorizationCode:
990+
authorizationUrl: 'https://login.xero.com/identity/connect/authorize'
991+
tokenUrl: 'https://identity.xero.com/connect/token'
992+
scopes:
993+
email: Grant read-only access to your email
994+
openid: Grant read-only access to your open id
995+
profile: your profile information
996+
projects: Grant read-write access to projects
997+
projects.read: Grant read-only access to projects
984998
parameters:
985999
requiredHeader:
9861000
in: header

0 commit comments

Comments
 (0)