Bet app
git clone https://github.com/BenasG/Bet_app.git
php artisan migrate
Insert implemented betslip
curl http://[localhost]/bet/create/basic
Insert your betslip
$betslip = [
'player_id' => 1,
'stake_amount' => 10,
'errors' => [],
'selections' => [
[
'id' => 1,
'odds' => 1.601,
'errors' => [],
],
[
'id' => 2,
'odds' => 1.601,
'errors' => [],
],
],
];
curl -X GET -H "Content-Type: application/json" -d '{"player_id":1,"stake_amount":10,"errors":[],"selections":[{"id":1,"odds":1.601,"errors":[]},{"id":2,"odds":1.601,"errors":[]}]}' http://[localhost]/bet/create/request
Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.
Documentation for the framework can be found on the Lumen website.
If you discover a security vulnerability within Lumen, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
The Lumen framework is open-sourced software licensed under the MIT license