Skip to content

hugowth/health-api

Repository files navigation

Health API

Environment

Prerequisite

  • python 3.9

Install python dependencies

  • brew install pyenv pipenv
  • pipenv install

Run development server

python manage.py runserver
# or
pipenv run server

It will start a local server at localhost:8000 and you can access the API The API document at localhost:8000/redoc/

Django ORM migrations

Run these two commands only when changes are made to the Django models

# create migration files
python manage.py makemigrations
# or
pipenv run makemigrations

# apply the migration operations
python manage.py migrate
# or
pipenv run migrate

Testing

python manage.py test

API Document

This project uses drf-spectacular to generate the Redoc and OpenAPI schema.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages