Closed KingKnecht closed 1 month ago
I want to implement an API for GET with two parameters.
Any remoting function that takes arguments maps to POST
requests, only functions that take unit
are mapped to GET
in HTTP. Read more about it here https://zaid-ajaj.github.io/Fable.Remoting/#/advanced/raw-http-communication
You cannot implement GET
request like you mentioned before from remoting. However, you can implement the GET
route as part of your web application, outside of the remoting API and let it call the same function via: ctx.GetService<ServerApi>().authorize ...
Got it running. Thanks!
I want to implement an API for GET with two parameters.
to be able to do something like this:
http://localhost:5000/authorize?username=john&password=12345
I have tried:
and with a single parameter like this:
my Fable webApi function looks like this:
Implementation of ServerApi looks like this:
But my implementation of
Authorization
gets never called. How could I achieve that?