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

README: more details on method blocks #112

Merged
merged 2 commits into from
Feb 25, 2020

Conversation

cben
Copy link
Contributor

@cben cben commented Feb 24, 2020

I notice the meaning of parameters depends on method, so decided to document that better.

  • see openapi: listing collections don't document returning a kind field #111 about Kind parameter in List.

  • wasn't sure where to document the ?method=Get thing. AFAICT MethodMiddleware code implementing this is specific to clusters-service, and SDK doesn't use it on client nor server side.
    But it's used by some requests from the UI, so should be documented, and should appear in openapi (which adding to README doesn't achieve).

    An obvious place I thought is on root resource for clusters_mgmt, but its comment doesn't seem to get into the openapi. The doc string for /api/clusters_mgmt/v1 is "Retrieves the version metadata." which is hard-coded in the generator.

README.adoc Outdated Show resolved Hide resolved
name and their type. In the above example there are five input parameters
(named `Page`, `Size`, `Search` and `Order`) and one output parameter (named
name and their type. In the above example there are four input parameters
(named `Page`, `Size`, `Search` and `Order`) and four output parameter (named
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be: two output parameters (named TotalandItems`).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, I forgot to edit this part. I meant four, including the in-out Page and Size.

README.adoc Outdated Show resolved Hide resolved
Copy link
Collaborator

@jhernand jhernand left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks @cben.

@jhernand jhernand merged commit daea997 into openshift-online:master Feb 25, 2020
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