Home » Community » Coffee corner » Multi-UI REST applications with U++
Re: Multi-UI REST applications with U++ [message #45997 is a reply to message #45996] |
Fri, 12 February 2016 12:45   |
|
Hi NilaT,
NilaT wrote on Fri, 12 February 2016 11:07Hello and sorry for picking up this old Thread.
I just wanted to ask if there is a REST implementation in UPP already?
Because I searched here and this thread was the only "useful" info I found.
Don't be afraid to create a new thread if you don't find what you need.
NilaT wrote on Fri, 12 February 2016 11:07I need to program a webserver which uses REST communication and JSON.
For JSON I already found the Json class but for REST I'm not sure.
There is not much to implement for this in U++. REST is not a technology, it is just a "style" of API. It actually doesn't even have to be implemented using HTTP, the only constraints that REST imposses on API are client-server architecture and statelessness.
I believe Skylark already supports all the necessary HTTP methods, so if you need to implement REST API on your webserver, you just need to write the skylark methods in stateless way, that is they always get all the necessary input data within the request. SkylarkPack might help you a bit with the organization of the code, see chapter 12 of skylark tutorial.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Tue Apr 29 00:28:43 CEST 2025
Total time taken to generate the page: 0.00751 seconds
|