Apicurio / apicurio-studio

Open Source API Design
https://www.apicur.io/studio/
Apache License 2.0
983 stars 493 forks source link

Allow generating CRUD APIs after resource creation #770

Open mmindenhall opened 5 years ago

mmindenhall commented 5 years ago

Issue #368 added the ability to generate CRUD APIs when creating a new Data Type.

It would be nice to be able to execute this functionality after a Data Type has been created. My general workflow when designing an API is to start with the resources (Data Types), and figure out how they relate. Sometimes they end up being a sub-resource (e.g., "bar" in the path /api/v1/foo/{fooId}/bar/{barId}), or for some other reason I don't want the full set of CRUD APIs. But for the rest of the types, I do want to generate the APIs after the design is a bit more settled.

Perhaps this could be added to the Data Type menu if the CRUD APIs haven't already been created for that type?

Thanks!

EricWittmann commented 5 years ago

This is a very good idea. Shouldn't be too terribly hard to do. I wonder - should we also allow users to specify the root path to make creating sub-resources easier? I suppose you can create a root resource and then rename the paths. But it would probably be better to do it all in one go.

Thoughts @jsenko ?

wtrocki commented 4 years ago

Is this implemented already?

EricWittmann commented 4 years ago

No not yet. You can do it when creating the data type but not afterwards.

On Thu, Sep 26, 2019, 7:43 PM Wojtek Trocki notifications@github.com wrote:

Is this implemented already?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Apicurio/apicurio-studio/issues/770?email_source=notifications&email_token=AAONTDZUMQIR4F366JKKM3DQLVCJZA5CNFSM4HM3M6IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7XIJEA#issuecomment-535725200, or mute the thread https://github.com/notifications/unsubscribe-auth/AAONTDZ3ZO3IQ5ET7NKRYB3QLVCJZANCNFSM4HM3M6IA .