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

Where is the database ? #67

Open
lucasvv117 opened this issue Nov 20, 2022 · 3 comments
Open

Where is the database ? #67

lucasvv117 opened this issue Nov 20, 2022 · 3 comments

Comments

@lucasvv117
Copy link

Hello, I am kind of new to using APIs, but where is the data source ?
I mean I get how we can get it using the API, but from where do we get the data ?
Other question, what request do we need to get the list of all the match of the word cup ?

@tuminzee
Copy link
Contributor

@lucasvv117 you can call the api and get the data
Data source is not exposed to the users
To get the list of matches you can call
Http Metod : GET http://api.cup2022.ir/api/v1/match
A request on Matches endpoint returns all Matches information

To call the API from your application/client refer to
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
https://axios-http.com/docs/intro

Before making these calls do read the https://github.com/raminmr/free-api-worldcup2022#readme
It solves most of the doubts

@abedjaber
Copy link

If I understood you correctly, reading the data requires some technical skills (for example: .Net) by creating an httpclient and proceeding with the rest of the steps and deserialization.

@tuminzee
Copy link
Contributor

@abedjaber
Yes that is correct, although you can also interact with it by using an API Platform like Postman
export of postman collection can be found here https://github.com/raminmr/free-api-worldcup2022/tree/main/collection

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

No branches or pull requests

3 participants