Hacker News new | past | comments | ask | show | jobs | submit login

I've found apenapi generated clients very helpful with statically typed languages and very unhelpful with dynamic languages.

For dynamic languages I'd recommend using an http library directly.

Consider the code without a generated client code:

client.get("/hello")

And the code with a generated client

client.hello()

In a dynamic language they're about the same.

But in a statically typed language

- I know the second case is calling a route that exists

- The response is typed

- If there is request data or query parameters the language helps me use them correctly

- My editor displays documentation about the request if I hover over it, including if it has been deprecated




The v6.2.0 python client uses type hints everywhere so model property access gives typed results Endpoint inputs are typed. Endpoint responses are typed so you know what deserialized body models you are getting back. Have you tried it?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: