Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 506 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 506 Bytes

endpoints-proto-datastore-rest

a RESTful api generator for endpoints proto datastore

Usage

# generate restful api in one line
BigDataLab = EndpointRestBuilder(GPCode).build(
    api_name="BigDataLab",
    name="bigdatalab",
    version="v1",
    description="My Little Api"
)

# Customize api

builder = EndpointRestBuilder(GPCode)

# change the default list behavior
builder.set_list(func)

# add a endpoint api
builder.set_method(func, 'trigger')