Skip to content

Example authentication API using Python

License

Notifications You must be signed in to change notification settings

cjduffett/conifer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conifer

Example authentication API using Python + Starlette + Sqlalchemy.

Dependencies

Quick Start

Build the project:

make build

Run the app:

make run

Get a shell:

make shell

Endpoints

Application is available at http://localhost:8000

Health Check

Request:

GET /health

Response: 200 OK

OK

Create an Account

Request:

POST /account

Request body:

{
    "email": "[email protected]",
    "password": "goldenretriever123"
}

Response: 201 CREATED
No content

Login

POST /login

Request body:

{
    "email": "[email protected]",
    "password": "goldenretriever123"
}

Response: 201 CREATED

{
    "session": "8b10a24e5cf54908acb5bfd288b56b0d",
    "expires_at": "2023-08-05T00:40:12.848103+00:00"
}

Resources

About

Example authentication API using Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published