From caf52b9e1c25849a8f0040c8a16c3c11e0b14365 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 7 May 2020 01:20:46 +0200 Subject: [PATCH] Add apistar pycharm template --- pycharm_templates/apistar.vm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pycharm_templates/apistar.vm diff --git a/pycharm_templates/apistar.vm b/pycharm_templates/apistar.vm new file mode 100644 index 00000000..9dde7450 --- /dev/null +++ b/pycharm_templates/apistar.vm @@ -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 {}