-
Clone the repository and into to directory.
git clone [email protected]:jonyig/devmentor-BE103-Python.git && cd devmentor-BE103-Python
-
Start the container.
docker-compose up -d
-
Check API document
localhots:8000
-
Upgrade
alembic upgrade head
-
Downgrade
alembic downgrade -1
-
Current version
alembic current
-
Current version
alembic current
-
Create new migration
alembic revision -m "create XXX table"
curl --location '127.0.0.1:8000/v1/posts'
curl --location '127.0.0.1:8000/v1/posts' \
--header 'Content-Type: application/json' \
--data '{
"title":"12344rr",
"content" : "1333"
}'