[Newbie] How to create a REST based API backend in Python?

42 views
Skip to first unread message

pratibha s

unread,
Aug 27, 2016, 11:27:50 AM8/27/16
to Google App Engine
Hi,

I'm GAE newbie. I'm trying to implement a RESTful API for a python based backend. I'm reading the docs and here is what I learnt. 
1. GAE recommends using cloud endpoints which originally uses protoRPC to expose models via APIs. 
2. This means models need to be converted to RPC messages for communicating with the API. 
3. Use a REST based API which will enable directly manipulating the model entities via API.

Here is my question, without using external third party libraries, how do you create a REST based APIs? 

Regards,
Pratibha

Adam (Cloud Platform Support)

unread,
Aug 29, 2016, 4:21:03 PM8/29/16
to Google App Engine
I would recommend reading all of the Endpoints documentation (which isn't a lot), starting with the overview, as it will answer all of these questions. Endpoints handles the conversion of models to messages for you, and communicates using JSON. You can generate client libraries automatically, or you can talk to your Endpoints back-end directly over HTTP.

If your question is how to create a REST API without using Endpoints or any library, you're essentially asking how to write your own REST framework which is probably outside the scope of a Google Groups post.
Reply all
Reply to author
Forward
0 new messages