Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 5. Add Sports Service #5

Open
wants to merge 1 commit into
base: task4-get-race-by-id
Choose a base branch
from

Conversation

xsoroton
Copy link
Owner

Add Sports Service

NOTE: Sport service is just a copy of Racing service.

run sport services, check updated README to run,

cd ./sport
go run ./

API calls examples to Sport Service

# get Sports list
curl --location --request POST 'http://localhost:8000/v1/list-sports' \
--header 'Content-Type: application/json' \
--data-raw '{"filter": {
    "visible_only":true, 
    "sort_by_field_name":"advertised_start_time",
    "meeting_ids": [1,5]
    }
}'

# Get by sport ID
curl http://localhost:8000/v1/sport/13

@xsoroton xsoroton changed the base branch from master to task4-get-race-by-id June 24, 2021 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant