-
Notifications
You must be signed in to change notification settings - Fork 15
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
idea: adding a mega-example for OAS and linking to it, populating almost all examples. #230
Comments
toumorokoshi
added a commit
to toumorokoshi/aep.dev
that referenced
this issue
Oct 22, 2024
Adding oas examples for create. This also tests out the pattern outlined in aep-dev#230 - adding a generated oas.yaml and use selective elements from it as an example, which looks to work pretty well. There is a blocker on aep-dev/site-generator#43 to allow for support from a json-path like structure to target sub-elements, but this will at least allow for selective guidance to be easily added.
toumorokoshi
added a commit
to toumorokoshi/aep.dev
that referenced
this issue
Nov 5, 2024
Adding oas examples for create. This also tests out the pattern outlined in aep-dev#230 - adding a generated oas.yaml and use selective elements from it as an example, which looks to work pretty well. There is a blocker on aep-dev/site-generator#43 to allow for support from a json-path like structure to target sub-elements, but this will at least allow for selective guidance to be easily added.
toumorokoshi
added a commit
to toumorokoshi/aep.dev
that referenced
this issue
Nov 5, 2024
Adding oas examples for create. This also tests out the pattern outlined in aep-dev#230 - adding a generated oas.yaml and use selective elements from it as an example, which looks to work pretty well. There is a blocker on aep-dev/site-generator#43 to allow for support from a json-path like structure to target sub-elements, but this will at least allow for selective guidance to be easily added.
toumorokoshi
added a commit
to toumorokoshi/aep.dev
that referenced
this issue
Nov 5, 2024
Adding oas examples for create. This also tests out the pattern outlined in aep-dev#230 - adding a generated oas.yaml and use selective elements from it as an example, which looks to work pretty well. There is a blocker on aep-dev/site-generator#43 to allow for support from a json-path like structure to target sub-elements, but this will at least allow for selective guidance to be easily added.
toumorokoshi
added a commit
to toumorokoshi/aep.dev
that referenced
this issue
Nov 6, 2024
Adding oas examples for create. This also tests out the pattern outlined in aep-dev#230 - adding a generated oas.yaml and use selective elements from it as an example, which looks to work pretty well. There is a blocker on aep-dev/site-generator#43 to allow for support from a json-path like structure to target sub-elements, but this will at least allow for selective guidance to be easily added.
toumorokoshi
added a commit
that referenced
this issue
Nov 6, 2024
Adding oas examples for create. This also tests out the pattern outlined in #230 - adding a generated oas.yaml and use selective elements from it as an example, which looks to work pretty well. There is a blocker on aep-dev/site-generator#43 to allow for support from a json-path like structure to target sub-elements, but this will at least allow for selective guidance to be easily added. --------- Co-authored-by: Richard Frankel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a lot of places today where we are missing OpenAPI examples - this makes the guidance significantly less usable.
Many of these examples overlap with each - for example a best practices get request may also be a good example for using resource types. In addition, updating all of these examples can be very error-prone and toilsome.
It looks like there is this shorthand in the site-generator that provides a way to link to a single example, then only include a sub-section of it. See https://github.com/aep-dev/aep.dev/blob/main/aep/general/0124/aep.md.j2#L25
The syntax is a little rough (it looks like it does a substring match of some sort, but it's probably sufficient for most examples, and we can refine it to add desired functionality.
Since it's possible to use a single example across multiple, we could just have one mega-example of how an API should look, then just grab snippets from that to populate the various AEP pages. This also comes with the advantage that we only have to maintain one source of truth.
In addition, we now have aepc, which can easily generate AEP-compliant openapi definitions. So we could populate many of the examples by:
If there's examples missing, we can add them to the aepc example, or extend aepc to support that aep pattern.
I think the only blocker here is aep-dev/site-generator#43.
Thoughts?
The text was updated successfully, but these errors were encountered: