Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
2398 posts
|
Hi,
I wrote a small extension "Tealight" for the Teapot framework that makes it even easier to experiment with web based interfaces/web calls into Pharo running on the server side. It additionally allows you to easily define and generate a simple or versioned web interface for your own apps. With this extension REST annotated methods like greeting: aRequest <REST_API: 'GET' pattern: 'hello'> ^'HelloWorld from Pharo' are transformed into dynamic Teapot routes and can be accessed easily via web. You can use two pragmas: #REST_API:pattern: for standard APIs #REST_API:versions:pattern for versioned APIs Full docu explaining how to use it is added on https://github.com/astares/Tealight It also shows the new custom "Teaspoon" inspector extension tool implemented by Attila Magyar - which is really cool to experiment and call the web methods without a web browser or Zinc scripts. So far there is no config for Tealight for the catalog yet, will add this soon. So for the time being you need to load the latest version via Metacello new repository: 'github://astares/Tealight/repository'; baseline: 'Tealight'; load to follow the docu description. Have fun! Bye T. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
7411 posts
|
Nice work. Thanks!
Doru > On Oct 8, 2016, at 10:15 AM, Torsten Bergmann <[hidden email]> wrote: > > Hi, > > I wrote a small extension "Tealight" for the Teapot framework that makes it > even easier to experiment with web based interfaces/web calls into Pharo > running on the server side. > > It additionally allows you to easily define and generate a simple or versioned web > interface for your own apps. > > With this extension REST annotated methods like > > greeting: aRequest > <REST_API: 'GET' pattern: 'hello'> > > ^'HelloWorld from Pharo' > > are transformed into dynamic Teapot routes and can be accessed easily via web. > > You can use two pragmas: > > #REST_API:pattern: for standard APIs > #REST_API:versions:pattern for versioned APIs > > Full docu explaining how to use it is added on > > https://github.com/astares/Tealight > > It also shows the new custom "Teaspoon" inspector extension tool implemented by > Attila Magyar - which is really cool to experiment and call the web methods > without a web browser or Zinc scripts. > > So far there is no config for Tealight for the catalog yet, will add this soon. > So for the time being you need to load the latest version via > > Metacello new > repository: 'github://astares/Tealight/repository'; > baseline: 'Tealight'; > load > > to follow the docu description. > > Have fun! > > Bye > T. > ... [show rest of quote] -- www.tudorgirba.com www.feenk.com "Every successful trip needs a suitable vehicle." |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
667 posts
|
In reply to this post by Torsten Bergmann
Thanks Torsten. Pretty insteresting!
Offray On 08/10/16 03:15, Torsten Bergmann wrote: > Hi, > > I wrote a small extension "Tealight" for the Teapot framework that makes it > even easier to experiment with web based interfaces/web calls into Pharo > running on the server side. > > It additionally allows you to easily define and generate a simple or versioned web > interface for your own apps. > > With this extension REST annotated methods like > > greeting: aRequest > <REST_API: 'GET' pattern: 'hello'> > > ^'HelloWorld from Pharo' > > are transformed into dynamic Teapot routes and can be accessed easily via web. > > You can use two pragmas: > > #REST_API:pattern: for standard APIs > #REST_API:versions:pattern for versioned APIs > > Full docu explaining how to use it is added on > > https://github.com/astares/Tealight > > It also shows the new custom "Teaspoon" inspector extension tool implemented by > Attila Magyar - which is really cool to experiment and call the web methods > without a web browser or Zinc scripts. > > So far there is no config for Tealight for the catalog yet, will add this soon. > So for the time being you need to load the latest version via > > Metacello new > repository: 'github://astares/Tealight/repository'; > baseline: 'Tealight'; > load > > to follow the docu description. > > Have fun! > > Bye > T. > > ... [show rest of quote] |
Free forum by Nabble | Edit this page |