lockedata / starters

R Package 📦 for initializing projects for various R activities :nut_and_bolt:
https://itsalocke.com/starters/
GNU General Public License v3.0
124 stars 16 forks source link

Add a `createAPIProject` #22

Open stephlocke opened 7 years ago

stephlocke commented 7 years ago

@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.

maelle commented 6 years ago

see also https://github.com/rstudio/swagger/issues/1#issuecomment-395627756 by @hrbrmstr too

maelle commented 6 years ago

see also https://github.com/mkearney/useapi by @mkearney

maelle commented 6 years ago

Any API examples for this @stephlocke?

maelle commented 4 years ago

this sure reminds me of our efforts in the hubspot package! Except Hubspot's API is not swagger compliant.

stephlocke commented 4 years ago

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

maelle commented 4 years ago

Yeah, I'll revisit this once hubspot is in good shape.

Agree reg the dream. :sparkles:

jonthegeek commented 2 years ago

Did anything come of this? I'm trying to follow the breadcrumbs in various repo discussions 🙃

maelle commented 2 years ago

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: