It allows users to view, search, and filter works of art, as well as register for an account.
- Clone the repository to your local machine.
- Create a virtual environment and activate it.
- Install the required packages using
pip install -r requirements.txt
. - Set up the database by running
python manage.py migrate
.
The following API endpoints are available:
/api/works
: Returns a list of all works of art./api/works?artist=[Artist Name]
: Returns a list of works of art by the specified artist./api/works?work_type=[Work Type]
: Returns a list of works of the specified type (e.g. "painting", "sculpture")./api/register
: Allows users to register for an account. The payload should include ausername
andpassword
.
To access the Django admin panel, you'll need to create a superuser account. You can do this by running python manage.py createsuperuser
and following the prompts.
To run the server, use the command python manage.py runserver
. The server will be accessible at http://localhost:8000/
.
Client Api endpoint (http://127.0.0.1:8000/api/client)
Work List (http://127.0.0.1:8000/api/works)
Artist List API (http://127.0.0.1:8000/api/register)
Registration API Endpoint Post only (http://127.0.0.1:8000/api/register)
Client API Endpoint (http://127.0.0.1:8000/api/client)
Admin Interface (http://127.0.0.1:8000/admin)
This project is open to contributions! If you find a bug or want to add a new feature, please create a new issue or pull request.