This is a web service for registering and maintaining mobile phone service customers. It allows users to store and manage customer and service information.
- The subscriber must be over 18 years of age. Minors cannot be registered in the system.
- The subscriber cannot have more than 10 lines. It is not possible to add the 11th service for the subscriber.
This web service is implemented using the Django framework and the Spyne library in the SOAP protocol.
Spyne is a Python RPC toolkit that makes it easy to expose online services that have a well-defined API using multiple protocols and transports.
To install and run this web service, follow the steps below:
- Clone the repository:
git clone https://github.com/MohammadMahdi-Akhondi/mobile_operator.git
- Create and activate a virtual environment:
python -m venv env
source env/bin/activate # for Linux/Mac
env\Scripts\activate # for Windows
- Install required packages:
cd mobile_operator
pip install -r requirements.txt
- Run database migrations:
python manage.py migrate
- Start the server:
python manage.py runserver
Tests are included to ensure the functionality of the web service. To run tests, execute the following command:
python manage.py test
To access the documentation for the service, you can follow the link below.
You can also use SoapUI to automatically generate requests.