1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Add apistar pycharm template

This commit is contained in:
Steffo 2020-05-07 01:20:46 +02:00
parent 39c05dc162
commit caf52b9e1c

View file

@ -0,0 +1,25 @@
import royalnet.constellation.api as rca
import royalnet.utils as ru
#set($CAPITALIZED_NAME = $NAME.substring(0,1).toUpperCase() + $NAME.substring(1))
class ${CAPITALIZED_NAME}Star(rca.ApiStar):
summary = "$SUMMARY"
description = ""
methods = ["GET"]
path = "$PATH"
requires_auth = False
parameters = {}
tags = ["$TAG"]
async def api(self, data: rca.ApiData) -> ru.JSON:
...
return {}