https://github.com/dogukanurker/factorialapi
Factorial Calculator API
https://github.com/dogukanurker/factorialapi
Last synced: 2 months ago
JSON representation
Factorial Calculator API
- Host: GitHub
- URL: https://github.com/dogukanurker/factorialapi
- Owner: DogukanUrker
- License: mit
- Created: 2024-06-21T19:10:16.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-21T19:11:25.000Z (12 months ago)
- Last Synced: 2025-03-27T02:09:05.703Z (2 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Factorial Calculator API
This is a simple Flask API that calculates the factorial of a given number.
## Endpoints
The API has three endpoints that all perform the same operation:
- `/calculate/`
- `/factorial/`
- `/`Replace `` with the number you want to calculate the factorial of.
## Errors
If the input is not a valid number, or if the number is negative, the API will return an error message in the following format:
```json
{
"error": "Please enter a valid number"
}
```