Skip to content

dangerII/BaseWebApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django-based web api framework

Run the api service using docker-compose.

docker-compose -p webapi -d

Add get/post api in Web/WebAdmin/api/view.py

  1. Add api before auth
class ApiView:
    def post_xxx_yyy(self): ...
    def get_xxx_yyy(self): ...

To access api use http protocal to get/post the url /auth/xxx_yyy

  1. Add api after auth with token
class ApiWithTokenView:
    def post_xxx_yyy(self): ...
    def get_xxx_yyy(self): ...

To access api use http protocal to get/post the url /api/xxx_yyy

  1. Add common api
class ApiCommonView:
    def post_xxx_yyy(self): ...
    def get_xxx_yyy(self): ...

To access api use http protocal to get/post the url /message/xxx_yyy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published