Settings

Theme

Ask HN: What API do you wish had a client SDK?

2 points by dandevs 3 years ago · 3 comments · 1 min read

Reader

I'm looking to practice writing SDKs. In doing so, I may as well make something useful for other people.

stop50 3 years ago

I wish i had better docs for foreman. I have not even the minimum to interact with the api. I had to write a 50 line long error errorparser (mostly if else cases, 20 lines are only related to normalising errors and does only process the body of the response)

  • dandevsOP 3 years ago

    Interesting. What language are you writing? Is there a specific Resource you use: https://apidocs.theforeman.org/foreman/latest/apidoc/v2.html

    • stop50 3 years ago

      At least they started to improve. But im missing anything package and contentview related. We are using satellite, which is an redhat supported packaged form of foreman. My main problems are: 1. There is no way of detecting or getting info if an resource is locked, our approach is trial and error, which just is too errorprone. 2. errormessages: most errormessages are in the form {displayname: string, error:[string, ]} sometimes error is errors or the list containing strings is an complex object. Some errors have even two very different ways of error output(permission error) we are using python for developing our tools.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection