Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: JSON WebService Description with PERl

by sundialsvc4 (Monsignor)
on May 08, 2012 at 12:50 UTC ( #969444=note: print w/ replies, xml ) Need Help??


in reply to JSON WebService Description with PERl

My immediate inquiry is ... when you say that the service is “implemented in Mojolicious,” can you please describe (don’t just post a listing!) what the present program consists of?   Did they create some kind of unfinished schema document, “just for show?”  Where is this project coming from, so to speak, and where does it need to go?


Comment on Re: JSON WebService Description with PERl
Re^2: JSON WebService Description with PERl
by several (Novice) on May 08, 2012 at 13:14 UTC

    The current programm consists of CRUD REST operations for different resources.

    1: But in order to have these Operations or Calls documented in whatever wiki (current state) we would like to have some kind of a META Call which generates a service description for the current instance. The service documents itself

    2: It would be nice to have a client-side which generates a dynamic CLI from the above fetched service description

      Here is an idea, if you've got a model, you can write a generator, see UML to Perl

      Say you created models using Moose (or one of the alternatives) and they use MooseX::Params::Validate ... and now you're providing a RESTful interface to these classes.

      Well, grab UML::Class::Simple and generate some uml, then you feed said uml through ummf to generate whatever you're after, a Joose based validator and jQuery interface to your RESTful api, a perl interface to your RESTful api ...

      But IMHO, JSON really doesn't need a web service description language other than english

      It turns out JSON-RPC-1.1 is contemptible :) http://search.cpan.org/perldoc/JSON::RPC::Common#RANT

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://969444]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2014-07-30 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls