Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92554

Re: How may I Integrate Python Code with REST

From Laura Creighton <lac@openend.se>
Subject Re: How may I Integrate Python Code with REST
References <02f1571f-a497-4b21-99b5-b39a627bb5ea@googlegroups.com>
Date 2015-06-12 22:46 +0200
Newsgroups comp.lang.python
Message-ID <mailman.440.1434142009.13271.python-list@python.org> (permalink)

Show all headers | View raw


In a message of Fri, 12 Jun 2015 10:52:19 -0700, subhabrata.banerji@gmail.com w
rites:
>Dear Group,
>
>I wrote a Python code. In the code there are two modules where we may insert data from outside. They are updating some training module and updating index. As a standalone code this is working fine. 
>
>I need to port this code to REST. I tried to learn Flask. My Practice for Flask is okay. I can put,get,delete. 
>
>But how may I proceed I am not getting much idea. I bit new in REST. 
>If any one of the esteemed members may kindly provide an idea how may I proceed? 
>
>Regards,
>Subhabrata Banerjee.  

All you need now is post.  So it looks as if you have  all the bits you
need, but you don't know how to use them to design an API.

See if this helps.
http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask

If not, you are probably at the stage of posting code here.
Here is my code that doesn't work.
Here is what happens when I run it.
This is what I wish it would do instead.

Right now we don't understand what it is that you don't understand, alas.
Code makes the problem obvious.

Laura

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How may I Integrate Python Code with REST subhabrata.banerji@gmail.com - 2015-06-12 10:52 -0700
  Re: How may I Integrate Python Code with REST sohcahtoa82@gmail.com - 2015-06-12 11:59 -0700
  Re: How may I Integrate Python Code with REST Laura Creighton <lac@openend.se> - 2015-06-12 22:46 +0200
    Re: How may I Integrate Python Code with REST subhabrata.banerji@gmail.com - 2015-06-13 00:23 -0700

csiph-web