Open stephlocke opened 7 years ago
see also https://github.com/rstudio/swagger/issues/1#issuecomment-395627756 by @hrbrmstr too
see also https://github.com/mkearney/useapi by @mkearney
Any API examples for this @stephlocke?
this sure reminds me of our efforts in the hubspot package! Except Hubspot's API is not swagger compliant.
Every API is a special snowflake. Stuff like adding the mocking infrastructure for tests, adding in ratelimitr etc might be a good start even if the dream would be to go from a swagger doc
Yeah, I'll revisit this once hubspot is in good shape.
Agree reg the dream. :sparkles:
Did anything come of this? I'm trying to follow the breadcrumbs in various repo discussions 🙃
No, but for hubspot https://github.com/DoubleYouGTT/hubspot/ I vaguely remember writing code to automate adding new endpoints... although I see no trace of this now :thinking: Maybe the code only extracted endpoints to have a list of them, like a checklist.
I think you had found https://blog.r-hub.io/2020/02/10/code-generation/ which is the only tip I'd have :sweat_smile:
@hrbrmstr started a project a while ago close to my heart hrbrmstr/swagger.
I'd like to revive that project to generate functions from API definitions produced in swagger - this would enable us to point at a swagger definition and produce not just a package skeleton with best practices but functions too.