warrant icon indicating copy to clipboard operation
warrant copied to clipboard

OpenAPI specification for APIs

Open tanmaykm opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Warrant APIs are based on HTTP, well structured and mostly in REST format. It will be useful to integrate with other systems if an OpenAPI specification is provided.

Describe the solution you'd like

Providing an OpenAPI specification for the APIs will allow using it from a wide variety of languages. E.g. https://github.com/OpenAPITools/openapi-generator#overview

Describe alternatives you've considered

Not sure if this was considered. And whether it will be suitable for the APIs and useful to move the SDKs to use.

Additional context

  • none -

tanmaykm avatar Jul 10 '23 07:07 tanmaykm

@tanmaykm thanks for opening this for discussion. We have talked internally about adopting OpenAPI but haven't yet made a decision on it.

I'm curious - are you looking for an SDK in a language we don't currently support (e.g. .NET, Rust)?

akajla09 avatar Jul 10 '23 21:07 akajla09

Thanks for the quick response @akajla09 ! Yes, we may need to access warrant from Julia and Lua, and it would be easier if we could just generate from a spec.

Unless of course if the SDKs do more than just invoking the API endpoints. In that case do you recommend using the SDKs only?

tanmaykm avatar Jul 11 '23 07:07 tanmaykm

Makes sense. I think more than likely we'll add an OpenAPI spec so clients can generate their own SDKs in whatever language they need. I'll provide an update here once we figure that out. In the interim, you're more than welcome to build your own simple Julia or Lua wrapper SDK as needed (there are just a handful of endpoints).

akajla09 avatar Jul 12 '23 00:07 akajla09