Skip to content

SKE-Survivors/blockquest-apis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockquest API

Quick Start

  1. create/config .env

  2. run docker-compose

    docker compose up

Docs

Endpoints

Auth

  • GET: /api/auth/logout?email=[email]&token=[token] (not supposed to be, but easier)

  • GET: /api/auth/check?email=[email]&token=[token]

  • Manual

    • POST: /api/auth/signup

      body = {
        "email": "",
        "username": "",
        "password": "",
        "confirm-password": "",
      }
    • POST: /api/auth/login

      body = {
        "email": "",
        "password": "",
      }
  • OAuth

    • GET: /api/auth/login/google
    • GET: /api/auth/login/github

User

  • GET: /api/user/profile?email=[email]

  • PUT: /api/user/profile?email=[email]&token=[token]

    body = {
      "username": "",
      "password": "",
      "confirm-password": "",
    }
  • DELETE: /api/user/profile?email=[email]&token=[token]

Update

  • Section
    • POST: /api/update/section/unlock?email=[email]&id=[id]&token=[token]
    • POST: /api/update/section/lock?email=[email]&id=[id]&token=[token]
  • Bag
    • POST: /api/update/bag/add?email=[email]&item=[item]&token=[token]
    • POST: /api/update/bag/remove?email=[email]&item=[item]&token=[token]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published