Skip to content

Commit

Permalink
add new featured institutions and services api specs (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppedipinto authored May 9, 2024
1 parent 3cc33bf commit cc76814
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 1 deletion.
67 changes: 67 additions & 0 deletions api_services_app_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,35 @@ paths:
description: Bad gateway
'504':
description: Gateway timeout
/institutions/featured:
get:
tags:
- featured
summary: Retrieve featured intitutions
operationId: getFeaturedInstitutions
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Institutions'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not found
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemJson'
'502':
description: Bad gateway
'504':
description: Gateway timeout
/institutions/{institutionId}/services:
get:
tags:
Expand Down Expand Up @@ -146,6 +175,35 @@ paths:
description: Bad gateway
'504':
description: Gateway timeout
/services/featured:
get:
tags:
- featured
summary: Retrieve featured services
operationId: getFeaturedServices
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/FeaturedServices'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not found
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemJson'
'502':
description: Bad gateway
'504':
description: Gateway timeout
/services/{serviceId}:
get:
tags:
Expand Down Expand Up @@ -319,6 +377,15 @@ components:
allOf:
- $ref: '#/components/schemas/FeaturedService'
- $ref: '#/components/schemas/Institution'
FeaturedServices:
type: object
properties:
services:
type: array
items:
$ref: '#/components/schemas/FeaturedService'
required:
- services
FeaturedService:
allOf:
- $ref: '#/components/schemas/ServiceMinified'
Expand Down
68 changes: 67 additions & 1 deletion openapi/api_services_app_backend.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,35 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ProblemJson"
/institutions/featured:
get:
tags:
- featured
summary: Retrieve featured intitutions
operationId: getFeaturedInstitutions
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Institutions'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not found
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemJson'
'502':
description: Bad gateway
'504':
description: Gateway timeout
/institutions/{institutionId}/services:
get:
tags:
Expand Down Expand Up @@ -132,6 +161,35 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ProblemJson"
/services/featured:
get:
tags:
- featured
summary: Retrieve featured services
operationId: getFeaturedServices
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/FeaturedServices'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not found
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemJson'
'502':
description: Bad gateway
'504':
description: Gateway timeout
/services/{serviceId}:
get:
tags:
Expand Down Expand Up @@ -204,7 +262,6 @@ components:
type: apiKey
name: Authorization
in: header

schemas:
InstitutionsResource:
allOf:
Expand Down Expand Up @@ -306,6 +363,15 @@ components:
allOf:
- $ref: "#/components/schemas/FeaturedService"
- $ref: "#/components/schemas/Institution"
FeaturedServices:
type: object
properties:
services:
type: array
items:
$ref: '#/components/schemas/FeaturedService'
required:
- services
FeaturedService:
allOf:
- $ref: '#/components/schemas/ServiceMinified'
Expand Down
67 changes: 67 additions & 0 deletions openapi/generated/api_services_app_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,35 @@ paths:
description: Bad gateway
'504':
description: Gateway timeout
/institutions/featured:
get:
tags:
- featured
summary: Retrieve featured intitutions
operationId: getFeaturedInstitutions
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Institutions'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not found
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemJson'
'502':
description: Bad gateway
'504':
description: Gateway timeout
/institutions/{institutionId}/services:
get:
tags:
Expand Down Expand Up @@ -146,6 +175,35 @@ paths:
description: Bad gateway
'504':
description: Gateway timeout
/services/featured:
get:
tags:
- featured
summary: Retrieve featured services
operationId: getFeaturedServices
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/FeaturedServices'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not found
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemJson'
'502':
description: Bad gateway
'504':
description: Gateway timeout
/services/{serviceId}:
get:
tags:
Expand Down Expand Up @@ -319,6 +377,15 @@ components:
allOf:
- $ref: '#/components/schemas/FeaturedService'
- $ref: '#/components/schemas/Institution'
FeaturedServices:
type: object
properties:
services:
type: array
items:
$ref: '#/components/schemas/FeaturedService'
required:
- services
FeaturedService:
allOf:
- $ref: '#/components/schemas/ServiceMinified'
Expand Down

0 comments on commit cc76814

Please sign in to comment.