/tutor

An HTTP API demonstrating example usage of various libraries created, owned, and maintained by freerware.

Primary LanguageGoApache License 2.0Apache-2.0

tutor

An HTTP API demonstrating example usage of various libraries created, owned, and maintained by freerware.

Quickstart

(! NOTE: REQUIRES docker !)

Fire it up! 🔥

make

Fire it up container-less! 🔥

make local

Tear it down! 🚧

make down 

Debug! 🔍🐛

make debug

Debug the database! 🔍🐛

make debug-db

Build! 🔨

make bins

Clean! 🧽

make clean 

cURL Examples

Create a new account:

cd ./curl/account/ && curl -K post_account.curl http://127.0.0.1:8000/accounts/ && cd ../../

Upsert anaccount:

cd ./curl/account/ && curl -K put_account.curl http://127.0.0.1:8000/accounts/04b8db89-cf81-47c8-ae26-b48ae60f1e09 && cd ../../

Retrieve an existing account:

cd ./curl/account/ && curl -K get_account.curl http://127.0.0.1:8000/accounts/04b8db89-cf81-47c8-ae26-b48ae60f1e09 && cd ../../

Remove an existing account:

cd ./curl/account/ && curl -K delete_account.curl http://127.0.0.1:8000/accounts/04b8db89-cf81-47c8-ae26-b48ae60f1e09 && cd ../../