Skip to main content

# restae [![Build Status](https://travis-ci.org/tolsac/restae.svg?branch=master)](https://travis-ci.org/tolsac/restae) [![PyPI version](https://badge.fury.io/py/restae.svg)](https://badge.fury.io/py/restae)

Restae is a framework to build REST APIs within the Google Cloud Platform App Engine. The structure of the framework is highly inspired by Django and Django REST Framework.

Please checkout official documentation to get more information https://restae.readthedocs.io/en/latest/

import webapp2

from google.appengine.ext import ndb

from restae.handlers import APIModelHandler from restae.router import Router from restae.serializers import ModelSerializer

class User(ndb.Model):

email = ndb.StringProperty() first_name = ndb.StringProperty() last_name = ndb.StringProperty()

class UserModelSerializer(ModelSerializer):
class Meta:

model = User fields = ‘__all__’

class Handler(APIModelHandler):

queryset = User.query() serializer_class = UserModelSerializer

router = Router() router.register(‘user’, Handler)

app = webapp2.WSGIApplication(router.urls)

Will produces those endpoints

GET /user/ list action GET /user list action (idem without trailing slash)

GET /user/<user key urlsafe>/ retrieve action GET /user/<user key urlsafe> retrieve action (idem without trailing slash)

POST /user/ create action POST /user create action (idem without trailing slash)

PUT /user/<user key urlsafe>/ update action PUT /user/<user key urlsafe> update action (idem without trailing slash)

PATCH /user/<user key urlsafe>/ partial_update action PATCH /user/<user key urlsafe> partial_update action (idem without trailing slash)

DELETE /user/<user key urlsafe>/ destroy action DELETE /user/<user key urlsafe> destroy action (idem without trailing slash)

Release files for restae 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for restae 1.1.5
File Size Uploaded
restae-1.1.5.tar.gz 16.8 kB Details

Release files / restae-1.1.5.tar.gz

Download URL restae-1.1.5.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0e5b2b7b7fb7c507599fa3b94ef42888f7064ab0be0c4cd4f74e74370e704078
BLAKE2b-256 checksum
How to use checksums
0ad4d4e51cdd395298b2ee48d1b63b42b8452fdcf6db6ba89b7126976ced12c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

1.1.5 This release

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page