-
Notifications
You must be signed in to change notification settings - Fork 137
Two more functions for REST API development using the JSON component #316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
0.21 is now live with |
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!
Method implementation queries and stored functions are purely illustrative and serve no particular purpose. Tested successfully using Both run under PostgreSQL. For versions older than PG14 use JSONB arrow syntax instead of subscripting. |
I'll implement this for SQLPage v0.33. Let's create great HTTP POST APIs entirely in SQL ! |
GREAT! I am planning to present SQLPage and run API REST services projects to high school pre-graduate students in the TUES of Sofia Technical University , to whom I am lecturing a data management (mainly RDBMS, PostgreSQL in particular) course. The web GUI stuff they will manage themselves. Wainting for ver. 0.33 binary, sincerely Stefan
-------- Оригинално писмо --------
От: Ophir LOJKINE ***@***.***
Относно: Re: [sqlpage/SQLPage] Two more functions for REST API development
using the JSON component (Issue #316)
До: sqlpage/SQLPage
Изпратено на: 11.02.2025 00:05
Closed #316 as completed via 817fd97 .
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you authored the thread. Message ID: @ github . com>
------=_Part_1129603_2066709475.1739436338099
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<HTML><BODY>
<div>GREAT!</div><div>I am planning to present SQLPage and run API REST ser=
vices projects to high school pre-graduate students in the <a href=3D"https=
://www.tu-sofia.bg/newsEvents/18514">TUES of Sofia Technical University</a>=
, to whom I am lecturing a data management (mainly RDBMS, PostgreSQL in par=
ticular) course. The web GUI stuff they will manage themselves.</div><div>W=
ainting for ver. 0.33 binary, sincerely</div><div>Stefan</div><br>>-----=
--- =D0=9E=D1=80=D0=B8=D0=B3=D0=B8=D0=BD=D0=B0=D0=BB=D0=BD=D0=BE =D0=BF=D0=
=B8=D1=81=D0=BC=D0=BE --------
<br> >=D0=9E=D1=82: Ophir LOJKINE ***@***.***
<br> >=D0=9E=D1=82=D0=BD=D0=BE=D1=81=D0=BD=D0=BE: Re: [sqlpage/SQLPage] =
Two more functions for REST API development
using the JSON component (Issue #316)
<br> >=D0=94=D0=BE: sqlpage/SQLPage ***@***.***>
<br> >=D0=98=D0=B7=D0=BF=D1=80=D0=B0=D1=82=D0=B5=D0=BD=D0=BE =D0=BD=D0=
=B0: 11.02.2025 00:05
<br><br>
=20
=20
<p></p>=20
<p>Closed <a href=3D"#316" targe=
t=3D"_blank">#316</a> as completed via <a href=3D"https://github.com/sqlpag=
e/SQLPage/commit/817fd974769a17c514558644847253814a5a7097" target=3D"_blank=
"><tt>817fd97</tt></a>.</p>=20
<p style=3D"font-size:small;color:#666666;">=E2=80=94<br>Reply to this em=
ail directly, <a href=3D"#316 (comment)=
t-16255638335" target=3D"_blank">view it on GitHub</a>, or <a href=3D"https=
://github.com/notifications/unsubscribe-auth/AGHZATFHTM76GD6QULJ63Z32PEPCBA=
VCNFSM6AAAAABW2DANICVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN=
5XDWMJWGI2TKNRTHAZTGNI" target=3D"_blank">unsubscribe</a>.<br>You are recei=
ving this because you authored the thread.<img src=3D"https://img.abv.bg/ns=
_test/1/i/bi.gif" height=3D"1" width=3D"1" alt=3D""><span style=3D"color:tr=
ansparent;font-size:0;display:none;overflow:hidden;width:0;height:0;max-wid=
th:0;max-height:0;">Message ID: <span><sqlpage/SQLPage/issue/316/issue_e=
vent/16255638335</span><span>@</span><span>github</span><span>.</span><span=
com></span></span></p>=20
=20
</BODY></HTML>
…------=_Part_1129603_2066709475.1739436338099--
|
Great! If you want to try it now before the official release, you can run lovasoa/sqlpage:main on docker! |
Discussed in #315
Originally posted by stefanov-sm May 13, 2024
Motivation
Build REST services that support
GET, POST, PUT, DELETE, ...
request methods and arbitrary length raw JSON inputSuggestion - add two more functions
sqlpage.request_method()
function that returns the request method as text. This would allow for code likesqlpage.request_body()
function that returns the request body payload as raw text. This would allow for code like (PostgreSQL)Expected result
A fully functional REST services development toolset based on the JSON component.
The text was updated successfully, but these errors were encountered: