This API tell you whether a number is Odd. It uses isevenapi.xyz in background and inverts the result.
- Clone the repository and enter it.
git clone https://github.com/mitanshu7/IsOddApi.git
cd IsOddApi/
- Install the requirements.
pip3 install -r requirements.txt
- Run the app.
python3 app.py
- Navigate to
127.0.0.1:5010/api/isodd/<number>
to check whether<number>
is odd.
- Clone the repository and enter it.
git clone https://github.com/mitanshu7/IsOddApi.git
cd IsOddApi/
- Build the docker container.
docker build --tag isoddapi .
- Run the docker container.
docker run --name isoddapi -d -p 5010:5010 isoddapi
- Navigate to
127.0.0.1:5010/api/isodd/<number>
to check whether<number>
is odd.