Skip to content

korovkincode/Memora-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memora API Guide

Sign up

POST /api/signup/

Request body

{
    "username": "str",
    "password": "str",
    "name": "str",
    "surname": "str",
    "email": "str",
    "gender": "str",
    "birthdate": "str",
}

Response

{"message": "Add new user"}

Authentication Token

Each user has their own unique 10 digit token. This token will be used for every request to define a user.

POST /api/login/

Request body

{
    "username": "str",
    "password": "str"
}

Response

{"message": "abcde12345"}

API Table

Name Method Route Request headers Request body Expected result Explanation
Sign up a user POST /api/signup/ None
        {
            "username": str,
            "password": str,
            "name": str,
            "surname": str,
            "email": str,
            "gender": str,
            "birthdate": str
        }
        
{"message": "Add new user"}
-
Get a token POST /api/login/ None
        {
            "username": str,
            "password": str
        }
        
{"message": "abcde12345"(example of token)}
-

About

API for Memora using Python + FastAPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages