mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
Add apistar pycharm template
This commit is contained in:
parent
39c05dc162
commit
caf52b9e1c
1 changed files with 25 additions and 0 deletions
25
pycharm_templates/apistar.vm
Normal file
25
pycharm_templates/apistar.vm
Normal 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 {}
|
Loading…
Reference in a new issue