Skip to content

Feature/add new project components endpoint#51

Open
ivan-risueno wants to merge 10 commits into
masterfrom
feature/add-new-project-components-endpoint
Open

Feature/add new project components endpoint#51
ivan-risueno wants to merge 10 commits into
masterfrom
feature/add-new-project-components-endpoint

Conversation

@ivan-risueno

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread openapi/openapi-component_catalog-v1.0.0.yaml Outdated
Comment thread openapi/openapi-component_catalog-v1.0.0.yaml Outdated
Comment thread openapi/openapi-component_catalog-v1.0.0.yaml Outdated
Comment thread openapi/openapi-component_catalog-v1.0.0.yaml Outdated
Comment thread src/main/java/org/opendevstack/component_catalog/config/CachingConfiguration.java Outdated
if (!validateTokenPermittedOids(accessToken)) {
throw new ForbiddenException("Invalid caller. Please, provide a valid token within the request.");
}
if (page < 0 || size < 0 || size > 100) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

does it make sense to make size configurable?

I can see it useful for testing, for instance

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It does, since we cannot ensure network stability or good latency. Also, we should let our callers to retrieve the amount of data per call that they want to, up to a certain limit. That's my point of view though, discussions are more than accepted 😊

@sonarqubecloud

Copy link
Copy Markdown

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