Skip to content

insper-education/devlife-support-api

Repository files navigation

Developer Life Support API

Django CI NodeJS CI

API Documentation

Currently available:

  • /auth/
    • /auth/password/reset/
    • /auth/password/reset/confirm/
    • /auth/login/
    • /auth/logout/
    • /auth/user/
    • /auth/password/change/
  • /api/users/
    • /api/users/{ID}/
  • /api/offerings/{OFF_ID}/exercises/{EX_ID}/answers/{ANS_ID}/previous/ (previous answer for this user and exercise)
  • /api/offerings/{OFF_ID}/exercises/{EX_ID}/answers/{ANS_ID}/next/ (next answer for this user and exercise)

References

Docker

docker build -t devlife-support .

# To run locally
docker run -p 5432:5432 -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=admin -e POSTGRES_DB=db postgres:13.0-alpine

# For testing run both commands simultaneously (on different terminals) 
docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=admin -e POSTGRES_DB=test_db postgres:13.0-alpine
docker run -v $PWD:/app -p 8000:8000 devlife-support