-
Notifications
You must be signed in to change notification settings - Fork 33
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
To use Open API specification for adding APIs, separate card description from that of json/yaml file description #3236
Comments
DescriptionI think that the functionality of page [Add API] should be planned again. Instead of three different ways:
to try to add an API card, there should be only one main line, what to follow. ProblemIn options 2 and 3 the problem is, that in case some content needed in API card is missing, it is not easy for API owner to find out what is wrong.
In case he/she can figure out the missing or erroneous data, he/she has to edit the original file and reload it in order to be able to try again. Let's say the API owner understands, that the description in swagger document needs to be shortened and he/she shortens it and gets an API card created. When looking documentation via API card, he/she finds out, that the previously excellent description is now only a short stump. API owner has to re-write the description and reload the swagger document in order to get it correctly attached on API card documentation. But what if the swagger document is tried to load from a URL? In case the API name in API configuration file is a duplicate, API owner has to edit the name in configuration file and load the file again in order to retry. ProposalLet's make the way 1 (fill the form) to be the main line. Only that way an API card can be added. In addition to fill up every input field manually, there would be supportive functionalities
Either way, when the input fields are correctly filled:
|
More speculation related to Add APIs matter. At the moment there is separate pages
Why not combine these pages into one?
The content of page should be refactored such a way, API owner is guided in creating of API. At first is given necessary information and later the less critical info, so that a usable API can be created with minimum effort and filling the information can easily be continued later. Also more guidance is needed, especially in proxy related part in order to make API owner to be at every step knowing, what he/she is doing. Perhaps the order of the fields could be something like this:
Lots of guidance and also drawings (even interactive) to show, what is the effect of choices.
|
Closing as is resolved by #3324 |
Problem
Right now, when an API is added to the platform using OpenAPI Specification (uploading json/yaml/ymlfile or providing a link to it), the description field in the API card tries to use the description provided in the specification file.
The character limitation of the description field in API card is 1000.
However, it is general practice to include a description larger than 1000 characters in the swagger or OpenAPI specification files to let users know how the API functions.
So, whenever a valid json, yaml or yml file having a description more than 1000 is attempted to use, Adding API to the platform is not possible.
In any case, the description field in the API card is to give a generalized idea about what the API is for. So the purpose of this description field is different than the description provided in API specification files.
Solutions
After having a chat with @matleppa we suggest the following alternatives:
The text was updated successfully, but these errors were encountered: