API for managing fictional micronations
MIT License
The SovereignSys API is a project that simulates the management of a micronation. This FastAPI-based application provides endpoints for citizen registration, passport issuance, law creation, and more. It's designed to showcase how a RESTful API can be used to manage the complex operations of a small, self-declared nation.
Before you begin, ensure you have met the following requirements:
Clone the repository:
git clone https://github.com/Apsurt/SovereignSys.git
cd SovereignSys
Create a virtual environment (optional but recommended):
python -m venv .venv
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
Install the required packages:
pip install -r requirements.txt
To run the API locally:
Start the FastAPI server:
fastapi dev SovereignSys/main.py
The API will be available at http://localhost:8000
Access the interactive API documentation at http://localhost:8000/docs
POST /
:GET /
:For full documentation on request/response formats, please refer to the API documentation at /docs
when the server is running.
Here's a quick example of how to use the API with curl:
Create a new citizen:
curl -X POST "http://localhost:8000/"
Issue a passport:
curl -X POST "http://localhost:8000/"
Create a new law:
curl -X POST "http://localhost:8000/"
This is a project for demonstration purposes. However, if you'd like to expand on this idea, feel free to fork the repository and make your own changes!
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or feedback, please open an issue in this repository.
Happy coding, and may your micronation prosper!