WaspW
Wasp10mo ago
NEROX

Non-Dev question about APIs

I'm developing an app which will receive calls and return things to an extension.

I have all the UI of my app and all the corresponding operations and queries to make it work as I want.

In the extension I only have the UI and I want to implement APIs to complete its functionality.

In this case I have managed to create an API even with auth with JWT and testing it, the extension has worked.

My doubt arises at the moment of creating the API(s).

I don't know if it would be the right thing to do, but I can compare the API with an Operation, just that it is carried out externally.

Based on this, I don't know if I should create only one API and that API runs ALL the necessary code (there are many operations) or an API for each operation (each operation is simple).

Any recommendations? Best practices?
Was this page helpful?