better organization
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-11-26 08:06:16 +01:00
parent 71f4cddfc5
commit 20991dd50f
19 changed files with 391 additions and 308 deletions

1
src/schemas/__init__.py Normal file
View File

@@ -0,0 +1 @@
from .userschema import UserSchema

24
src/schemas/userschema.py Normal file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env python3
from flaskaddons.marshm import ma
from marshmallow import fields
"""
User Masrshmallow schema
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, onSpot Team"
__module_name__ = "userschema"
__version__text__ = "1"
class UserSchema(ma.Schema):
"""
Parameters:
- name (string)
- passowrd (string)
"""
name = fields.String(required=True)
password = fields.String(required=True)