https://github.com/passy/soccer-stats-backend
Backend for my soccer prediction app doing some calculations with NumPy
https://github.com/passy/soccer-stats-backend
Last synced: over 1 year ago
JSON representation
Backend for my soccer prediction app doing some calculations with NumPy
- Host: GitHub
- URL: https://github.com/passy/soccer-stats-backend
- Owner: passy
- License: other
- Created: 2013-03-03T15:01:57.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-06T13:58:50.000Z (over 13 years ago)
- Last Synced: 2025-03-27T02:11:19.298Z (over 1 year ago)
- Language: Python
- Homepage: https://soccer-stats.herokuapp.com/
- Size: 125 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Soccer Stats API
[](https://travis-ci.org/passy/soccer-stats-backend)
Backend for my soccer prediction app, using a dumb time-independend least-square
regression algorithm.
Using Numpy and Flask.
## Endpoints
/v1/scores
* Accepted Methods: `POST`
* Request Payload: JSON
```
{"results": [
{"teamHome":"BVB","teamAway":"HSV","goalsHome":2,"goalsAway":1},
...
]}
```
* Response: JSON
```
{
"scores": {"BVB": 0.49999999999999978, "HSV": -0.49999999999999989},
"errors": [3.3306690738754696e-16]
}
```