Replies: 3 comments 1 reply
-
Hi, Some info from the wiki: https://github.com/thomaxxl/safrs/wiki/Instances-without-a-SQLAlchemy-model https://github.com/thomaxxl/safrs/wiki/RPC I will give a longer answer tomorrow, I am kinda busy atm. |
Beta Was this translation helpful? Give feedback.
-
Hi, The rpc decorator url parameter can be omitted by decorating the method with |
Beta Was this translation helpful? Give feedback.
-
The generated API can be extended with custom routes using the flask You can also use the safrs A third way to add custom endpoints is by simulating a safrs jsonapi class (https://github.com/thomaxxl/safrs/wiki/Instances-without-a-SQLAlchemy-model) . I noticed there's a bug here that will be fixed in the next release. |
Beta Was this translation helpful? Give feedback.
-
I am using safrs for my project. I am not able to find how to expose api which is not a CRUD operation of any models. All/customised http methods are exposed for models. But we have couple of more APIs to be exposed.
TIA
Beta Was this translation helpful? Give feedback.
All reactions