Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-28 Thread Hernán Morales Durand
Sorry bad typing. I wonder if you have another version than the published in SmalltalkHub (using Swagger-Support-V12-SebastianHeidbrink.1 currently) If I evaluate: (SwaggerAPIReaderV12 on: 'http://petstore.swagger.io/v2/swagger.json') readSwaggerAPIListing inspect Then "apis" Collection I guess

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-28 Thread Hernán Morales Durand
Sebastian I wonder if you 2015-06-25 14:51 GMT-03:00 Sebastian Heidbrink : > Actually with the new version 2.0 I would also change my workflow. > Version 1.2 had not online spec editor tooling support and this is why I > let Gemstone describe my REST API and render the Swagger json specificatio

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-25 Thread Sebastian Heidbrink
Actually with the new version 2.0 I would also change my workflow. Version 1.2 had not online spec editor tooling support and this is why I let Gemstone describe my REST API and render the Swagger json specification. In Swagger 2.0 I would rather take the online spec editor define a swagger sp

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-25 Thread Sebastian Heidbrink
Hi Sven, I put some code on GitHub. There is no working example yet, but all one needs. I have to get back into Amber and their current way to integrate external libs. As soon as I have that working again I will add a Version 1.2 petstore example. https://github.com/HeSe/amber-swaggerJs Mos

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-24 Thread itli...@schrievkrom.de
We go a very similiar way as Sebastian - but with our company need NOT to build a Smalltalk-only system, but also offer support for several other developers/languages. We use * Zinc REST * Gemstone 3.2.6 We generate code to have: * Swagger-UI and Swagger-Core support (currently 1.2) Earlier t

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread Sven Van Caekenberghe
> On 23 Jun 2015, at 22:55, Sebastian Heidbrink wrote: > > Hi Sergio, > > Zinc-REST is part of the Zinc repository and a fork for Gemstone can be found > here: > https://github.com/GsDevKit/zinc/tree/gs_master/repository/Zinc-REST.package > Most part is to implement the code that generates th

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread Sebastian Heidbrink
Hi Sergio, Zinc-REST is part of the Zinc repository and a fork for Gemstone can be found here: https://github.com/GsDevKit/zinc/tree/gs_master/repository/Zinc-REST.package Most part is to implement the code that generates the Swagger specification for your ZnRESTCall subclasses. But it is no v

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread Johan Fabry
You can build a simple REST service on top of the Zinc HTTP server quite easily and quickly, there is even an example in the EnterprisePharo book The book is a work in progress but you can get this text here: https://ci.inria.fr/pharo-contribution/view/Books/job/EnterprisePharoBook/lastSuccessf

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread sergio_101
hey, sebastian.. this looks great! this looks like what i am after.. did you run into any problems or limitations using Amber as a front end? I have not tried Amber yet, so this might be the right time to give it a shot.. where did you find zinc-rest? a quick search turns up references to it.. sho

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread Mariano Montone
Just curious. How do you implement authorization/authentication? Is there OAuth(2) support? Or you just use api token? Mariano On 23/06/15 16:12, Sebastian Heidbrink wrote: > Am 23.06.2015 um 11:40 schrieb sergio_101: >> I have been a project coming up that I really onlyneed a restful API on. >>

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread Andrew Glynn
ate: Tuesday, June 23, 2015 at 3:12 PM To: Any question about pharo is welcome Subject: Re: [Pharo-users] RESTful API with Pharo with Gemstones Am 23.06.2015 um 11:40 schrieb sergio_101: > > > I have been a project coming up that I really onlyneed a restful API on. > &

Re: [Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread Sebastian Heidbrink
Am 23.06.2015 um 11:40 schrieb sergio_101: I have been a project coming up that I really onlyneed a restful API on. The front end will be first built on a mobile device(iOS )then back on possibly android, with a very stripped down web application. i would like to use pharo/gemstones as the

[Pharo-users] RESTful API with Pharo with Gemstones

2015-06-23 Thread sergio_101
I have been a project coming up that I really onlyneed a restful API on. The front end will be first built on a mobile device(iOS )then back on possibly android, with a very stripped down web application. i would like to use pharo/gemstones as the database. is there a project out there that a