Content pfp
Content
@
0 reply
0 recast
2 reactions

‍ pfp
@git
NOTHING beats hand crafting your OpenAPI spec Often devs go about this the wrong direction: looking for tools that generate OpenAPI/Swagger spec and docs from some code Instead, start with hand crafting your OpenAPI spec and then use it to generate a client/sdk (ts/go/py/any language) and docs stainlessapi.com
5 replies
1 recast
8 reactions

atlasmoth pfp
atlasmoth
@osuji.eth
Why's it the wrong direction to use tools tho? Just curious
1 reply
0 recast
0 reaction

Steve pfp
Steve
@stevedylandev.eth
I generally like to have a starting point with a postman collection and then fill in the rest by hand, and that part really is my favorite. Very satisfying
1 reply
0 recast
0 reaction

Samuel pfp
Samuel
@samuellhuber.eth
I found HTTPAPi from https://github.com/Effect-TS/effect/tree/main/packages/platform to be incredible here. It also gives you a client just from declaring the API sample: https://github.com/SamuelLHuber/airstack-moxie-api-effect-http
0 reply
0 recast
1 reaction

aragonet 🎩 pfp
aragonet 🎩
@aragonet
Didn't know about it and look interesting! 100 $DEGEN
0 reply
0 recast
0 reaction

Luccy pfp
Luccy
@luccyy
Love this approach! 💯 Handcrafting specs is the way! 👍
0 reply
0 recast
0 reaction