Welcome to Stadiummm API!
Welcome to the Stadiummm API! Below is the documentation to help you interact with our system.
API Endpoints
1. Find Nearby Bars
- GET /bars/find
- URL:
https://api.stadiummm.com/bars/find?latitude={latitude}&longitude={longitude}
- Query Params:
- latitude: (required) Latitude of your location.
- longitude: (required) Longitude of your location.
- fixture_id: (optional) Filter bars showing a specific sport event.
- areaLimit: (optional) The area radius for searching nearby bars (default 10 km).
2. See Bar profile
3. Register a New User
- POST /auth/register
- Body:
{
'name': 'Joe',
'surname': 'Doe',
'email': 'joedoe@gmail.com',
'password': 'Joedoe12345a',
'type': 'Customer',
'termsAccepted': false
}
4. Login
5. View User Profile
- GET /profile
- Authorization: Bearer Token
- Description: Retrieve the profile of the currently authenticated user.
6. Get Upcoming Sport events
- GET /fixtures
- Query Params:
- page: (optional) The page number (default is 1).
- limit: (optional) The number of results per page (default is 10).
7. Add a Bar
- POST /bars
- Body:
{
'name': 'El Chiringuito Bar',
'max_capacity': 30,
'addressName': 'Carrer de Còrsega',
'addressNumber': '354',
'postcode': '08037',
'city': 'Barcelona',
'country': 'Spain'
}
8. Add an Event to Bar's Event List
9. Remove an Event from Bar's Event List
10. Forgot Password
11. Reset Password
12. Send verification Email
- GET/profile/send-verification-email
13. Verify Email
- GET /auth/verify-email?token={token}
- Query Params:
- token: The verification token sent to the user’s email.
14. Remove a Bar
15. Delete user
- DELETE /auth/delete-user
- Body:
{
'userId': 'userid'
}
16. Get Available Teams for Automation
- GET /bar-automations/teams
- Description: Get all available teams that can be used for bar automations.
17. Get Bar Automations
- GET /bar-automations/:barId
- Authorization: Bearer Token
- Description: Get all automations for a specific bar (user must own the bar).
18. Create Bar Automation
19. Delete Bar Automation
- DELETE /bar-automations/:id
- Authorization: Bearer Token
- Description: Delete a specific automation (user must own the bar).
Authorization
Many of the endpoints require Bearer Token authorization. Please ensure you include your token in the header of your requests.
Example of Header:
Authorization: Bearer
For more detailed information, feel free to refer to the full API documentation.