Guys, when you write an API docs for an integratio...
# suitescript
m
Guys, when you write an API docs for an integration, what do you use? Swagger? Apiary? Just PDF file?
s
we often take a lighter approach, especially for bespoke development. e.g. just JSON-schema and/or TypeScript interfaces to define the shape of api operations, inputs and outputs.
b
@Marwan I take stalbert's approach most of the time, but just stumbled on this article. Might be helpful if you work with WebStorm: https://blog.jetbrains.com/webstorm/2020/08/working-with-rest-apis-in-webstorm/
Theoretically you can test APIs from WebStorm, I'm trying to determine if it can handle oauth 1.0 though
Postman also has good auto generation which might be easier than anything else
Sorry for all the messages on the thread, I'm building out an API right now so working through documentation
s
No, AFAIK webstorm's built in stuff doesn't do OAuth - it's a requested feature though. That said, we prefer to write repeatable automated tests (jest) anyway, so using an OAuth library to do TBA is no problem.