https://github.com/abhishekshree/iitk-coin-task
https://github.com/abhishekshree/iitk-coin-task
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abhishekshree/iitk-coin-task
- Owner: abhishekshree
- Created: 2021-05-16T04:01:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-16T04:01:58.000Z (over 4 years ago)
- Last Synced: 2025-01-21T09:48:56.574Z (11 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Web server
Instructions to run locally:
1. Run ```pip install -r requirements.txt``` to install dependencies.
2. Use command ```python app.py``` to start the server.
### Server details
The server listens at ```PORT 8080``` and accepts a POST request at ```/coins``` endpoint.
The body of the request should be a JSON object:
```json
{
"rollno":"201010"
}
```
An example response would be:
```json
{
"coins": 10
}
```
> An example post request is available [here](./post.sh) using cURL.