Closed bajiat closed 7 years ago
For the record, it was requested that we use the OpenAPI Spec file that was created for the API Catalog to generate a REST scaffold. What would be the goal or outcome of generating the REST scaffold? What would be some possible implications of going 'design first', including code generation, when building the APInf REST API?
cc: @bajiat @kyyberi @marla-singer @matleppa
The design has been validated by the potential users aka developers. I suggest strongly that the implementation follows the structure. We preach the practice of automation and avoidance of unnecessary work in development. Using machine readable spec to generate API stub makes sense. Furthermore in my ears implementing API with different structure because selected platform makes it easy is not an acceptable excuse to neglect user defined features. We are building these APIs for developers, not to make life easy for our developers. Find a way to satisfy user needs.
@kyyberi thanks for clarifications.
Furthermore in my ears implementing API with different structure because selected platform makes it easy is not an acceptable excuse to neglect user defined features.
The Architecture Team has made a recommendation that is in alignment with the current proposed structure. We are continuing to discuss the overall strategy for building/maintaining the APInf API, including considerations such as user needs and maintainability, in that thread.
@frenchbread this is our Catalog API design task for the current sprint. Please let us know of anything you might need for your API Bot, or other, tasks.
@brylie API Bot is experimental thing, but anyways complete list of APIs available RESTfully would be enough. Additionally, it would be helpful to have a possibility to pass a string (as API NAME) and get in response APIs that closely match provided string. (Just like current APInf search does)
I moved the community comments from the APInf platform to this issue, so we can keep track of them during our re-design.
@bajiat please consider translating the comments from Suomi to English, where applicable, so we can have a shared understanding.
Assigned to @bajiat for translations. @matleppa Can you look at the comments and changes suggested?
Let's go through the comments and create new issues on the changes that are required. After this, we should close this issue.
Current version of the APInf Catalog API design specification is in Swaggerhub. There was a comment round for community about the specificatin, but the changes have not been incorporated into the design document. Also, there is an apinf-harvester that is supposed to POST harvested apis to the Catalog. Its datamodel should be compared with the Catalog API design.
Goal
Community comments
The following comments are taken directly from the Feedback tab of our APInf Catalog REST API page:
(Rough translations in parentheses)