REST code-golf: How concisely can you expose and consume services?

Discussion in 'Python' started by Alec Taylor, Sep 28, 2012.

  1. Alec Taylor

    Alec Taylor Guest

    web2py (7 lines): https://gist.github.com/3798093

    Includes creation of models, validator, controllers and urls.

    Rules:
    - Must have [at least] the same functionality as my 7-line example
    - Imports are allowed and not taken into line count, on the condition
    that everything remains generic. I.e.: one can change model and
    controller names &etc without modifying imported libraries
    - Can't import/take the code from web2py (e.g.:
    https://github.com/web2py/web2py/blob/master/gluon/tools.py#L4098)

    (feel free to write them in reply to this email and/or as gist comments =])

    Good luck!
    Alec Taylor, Sep 28, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Finney
    Replies:
    16
    Views:
    471
    Jeremy Fincher
    Nov 18, 2003
  2. dgleeson422111

    consume local web service -ok consume remote service - Not OK

    dgleeson422111, Jan 26, 2010, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    1,591
    dgleeson422111
    Jan 31, 2010
  3. Chris Angelico
    Replies:
    0
    Views:
    205
    Chris Angelico
    Sep 28, 2012
  4. Demian Brecht
    Replies:
    0
    Views:
    169
    Demian Brecht
    Sep 28, 2012
  5. Alec Taylor
    Replies:
    0
    Views:
    179
    Alec Taylor
    Sep 28, 2012
Loading...

Share This Page