This project provides a simple CRUD API for managing cryptocurrencies in a mock exchange environment.
- Add a new coin to the exchange
- Update details of an existing coin
- Retrieve details of a specific coin
- List all coins in the exchange
- Delete a coin from the exchange
- Clone the repository:
git clone <repository-url>
cd path-to-repository
- Install the required packages:
pip install -r requirements.txt
- Run the FastAPI server:
uvicorn main:app --reload
This will start the FastAPI server on http://127.0.0.1:8000
.
POST /coins/
: Add a new coinGET /coins/{coin_id}
: Retrieve details of a specific coinPUT /coins/{coin_id}
: Update details of a specific coinDELETE /coins/{coin_id}
: Delete a coinGET /coins/
: List all coins
Tests are available in the tests
directory. To run them, use:
pytest
This project uses GitHub Actions for continuous integration. Check the .github/workflows
directory for workflow configurations.
Contributions are welcome. Please fork the repository, create a new branch for your changes, and submit a pull request.