apidoc updates

This commit is contained in:
Gardient
2021-09-30 23:00:46 +03:00
parent 71c1e322aa
commit 04d70ba424
8 changed files with 42 additions and 24 deletions

View File

@@ -1,11 +1,14 @@
from marshmallow import Schema, fields
class LoginSchema(Schema):
username = fields.Str()
password = fields.Str(load_only=True)
username = fields.Str(required=True)
password = fields.Str(required=True, load_only=True)
class TokenResponseSchema(Schema):
token = fields.Str()
login_schema = LoginSchema()
token_response_schema = TokenResponseSchema()