Skip to content

mitanshu7/IsOddApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IsOddAPI

This API tell you whether a number is Odd. It uses isevenapi.xyz in background and inverts the result.

Requirements

  1. Python 3.11.9
  2. Docker (Optional)

Usage:

Without Docker:

  1. Clone the repository and enter it.
git clone https://github.com/mitanshu7/IsOddApi.git
cd IsOddApi/
  1. Install the requirements.
pip3  install -r requirements.txt
  1. Run the app.
python3 app.py
  1. Navigate to 127.0.0.1:5010/api/isodd/<number> to check whether <number> is odd.

With Docker:

  1. Clone the repository and enter it.
git clone https://github.com/mitanshu7/IsOddApi.git
cd IsOddApi/
  1. Build the docker container.
docker build --tag isoddapi .
  1. Run the docker container.
docker run --name isoddapi -d -p 5010:5010 isoddapi
  1. Navigate to 127.0.0.1:5010/api/isodd/<number> to check whether <number> is odd.

About

Use isOdd to tell if a number is odd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published