Skip to content

Commit

Permalink
Add #37 Add service read image endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
albinpa authored and georgepadayatti committed Nov 7, 2023
1 parent 34e1235 commit b81d174
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 2 deletions.
31 changes: 30 additions & 1 deletion openapi/v2023.8.2/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3179,7 +3179,24 @@ paths:
schema:
properties:
organisation:
$ref: '#/paths/~1onboard~1organisation/get/responses/200/content/application~1json/schema/properties/organisation'
items:
allOf:
- $ref: '#/paths/~1onboard~1organisation/get/responses/200/content/application~1json/schema/properties/organisation'
- type: object
title: OrganisationExtras
properties:
coverImageId:
type: string
description: id of cover image
coverImageUrl:
type: string
description: Cover image url
logoImageId:
type: string
description: Logo image id
logoImageUrl:
type: string
description: Logo image url
required:
- organisation
type: object
Expand Down Expand Up @@ -3990,6 +4007,18 @@ paths:
description: bad input parameter
security:
- BearerAuth: []
'/service/image/{imageId}':
get:
deprecated: false
description: Get organization image
operationId: serviceReadOrganisationImage
responses:
'200':
headers: {}
security:
- BearerAuth: []
tags:
- service
/audit/admin/logs:
get:
operationId: auditAdminLogs
Expand Down
16 changes: 16 additions & 0 deletions openapi/v2023.8.2/definitions/OrganisationExtras.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type: object
title: OrganisationExtras
properties:
coverImageId:
type: string
description: "Cover image id"
coverImageUrl:
type: string
description: "Cover image url"
logoImageId:
type: string
description: "Logo image id"
logoImageUrl:
type: string
description: "Logo image url"

3 changes: 3 additions & 0 deletions openapi/v2023.8.2/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ paths:
/service/individuals:
get:
$ref: ./paths/serviceListIndividuals.yaml
/service/image/{imageId}:
get:
$ref: ./paths/serviceReadOrganisationImage.yaml
/audit/admin/logs:
get:
$ref: ./paths/auditAdminLogs.yaml
Expand Down
5 changes: 4 additions & 1 deletion openapi/v2023.8.2/paths/serviceReadOrganisation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ responses:
schema:
properties:
organisation:
$ref: ../definitions/Organisation.yaml
items:
allOf:
- $ref: ../definitions/Organisation.yaml
- $ref: "../definitions/OrganisationExtras.yaml"
required:
- organisation
type: object
Expand Down
10 changes: 10 additions & 0 deletions openapi/v2023.8.2/paths/serviceReadOrganisationImage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
deprecated: false
description: Get organization image
operationId: serviceReadOrganisationImage
responses:
'200':
headers: {}
security:
- BearerAuth: []
tags:
- service

0 comments on commit b81d174

Please sign in to comment.