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

Fix Swagger GET metrics #297

Closed
wants to merge 1 commit into from
Closed

Fix Swagger GET metrics #297

wants to merge 1 commit into from

Conversation

vkatsuba
Copy link
Contributor

@vkatsuba vkatsuba commented Jan 25, 2021

Fixed few issues:

  • The basePath variable was set base path(/api/v1) for each REST API, while the other REST API can use path without /api/v1
  • The default accept type application/json is not suit for REST API /metrics

@vkatsuba vkatsuba requested a review from a team January 25, 2021 15:59
@vkatsuba vkatsuba linked an issue Jan 28, 2021 that may be closed by this pull request
@RoadRunnr
Copy link
Member

/metrics might not really belong into swagger / API definition. Is not a RPC API, but rather a special function that just happen to be on the same server.

Removing /metric from the API specification might be the better approach.

@fholzhauser @mgumz opinions?

@mgumz
Copy link
Contributor

mgumz commented Feb 1, 2021

@RoadRunnr /metrics: yes, should be outside of an api.

@vkatsuba
Copy link
Contributor Author

vkatsuba commented Feb 1, 2021

Closed PR and opened #313 for delete /metrics from Swagger definitions.

@vkatsuba vkatsuba closed this Feb 1, 2021
@vkatsuba vkatsuba deleted the fix/swagger_get_metrics branch February 1, 2021 16:55
@vkatsuba vkatsuba mentioned this pull request Feb 1, 2021
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.

Fix Swagger GET metrics
3 participants