Run the api service using docker-compose.
docker-compose -p webapi -d
- 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
- 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
- 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