create Restful API using LoopBack4 CLI starting from a complete open api spec 3 file #8934
Unanswered
jeffreybradley1963
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create a restful API based on an existing OAI v3 file (swagger). I have run the command
lb4 openapi path_to_my_api.yaml
that does create models for everything and the generated "explorer" works (NOTE: I did have to change any parameter references to be "in-line" instead of a reference to the "Parameters" entity). I am trying to figure out now what I need to run in order to actually hook things up to a database. I have tried generating a datasource, and I have tried many different attempts at creating a repository. Are there any examples of how to do this from beginning to end?
Thanks,
Jeff Bradley
Beta Was this translation helpful? Give feedback.
All reactions