Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the REST API response for /services #1031

Merged
merged 6 commits into from
Nov 27, 2023
Merged

Enhance the REST API response for /services #1031

merged 6 commits into from
Nov 27, 2023

Conversation

Ndpnt
Copy link
Member

@Ndpnt Ndpnt commented Nov 21, 2023

No description provided.

@Ndpnt Ndpnt changed the title Add services' terms types in API Enhance the REST API response for /services Nov 21, 2023
CHANGELOG.md Show resolved Hide resolved
@@ -72,12 +72,29 @@ const router = express.Router();
* schema:
* type: array
* items:
* $ref: '#/components/schemas/Service'
* type: object
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a lot of redundancy with Service. Could we avoid that duplication with schema composition? We could factor the id, name and description, and simply diverge on the terms property.

Copy link
Member

@MattiSG MattiSG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schema composition would be welcome, but this is not blocking 🙂

@Ndpnt Ndpnt merged commit 2907fe8 into main Nov 27, 2023
7 checks passed
@Ndpnt Ndpnt deleted the update-api branch November 27, 2023 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants