Open stefanov-sm opened 1 month ago
0.21 is now live with sqlpage.request_method()
I think GitHub messed the formatting of your response... Can you open this thread directly on GitHub on the web and paste your message?
Great!
Here is a REST service template (working) that might be useful for the documentation, in two flavours -
Method implementation queries and stored functions are purely illustrative and serve no particular purpose.
Tested successfully using
curl -X POST -i http://localhost:83/svc/ --data "one=1&two=2&three=3"
curl -X GET -i "http://localhost:83/svc/?one=1&two=2&three=3"
Both run under PostgreSQL. For versions older than PG14 use JSONB arrow syntax instead of subscripting.
Function sqlpage.variables('post')
may be replaced by sqlpage.request_body()
in the future.
Discussed in https://github.com/lovasoa/SQLpage/discussions/315