An organization has assigned me an Angular
task. They have given the following guidelines, however, the API URL is not functioning:
Develop a single-page Angular application using the provided API to fetch sports results and organize them in a displayed table in reverse chronological order. Each sport result includes various data points along with the publication time.
Method: POST
Content-Type: application/json
Url: https://ancient-wood-1161.getsandbox.com:443/results
Tasks:
- Display the sports results on the page sorted in reverse chronology.
- Include a filter to show specific types or events (e.g., f1Results)
- How would you test if the code is functional?
- Bonus Task: Implement asynchronous REST call
You can try clicking the URL now, but it is returning an error message
{"errors":[{"message":"Error processing request"}]}
, and Angular is throwing a standard CORS error.
I requested the organization for a working URL or to update the API for universal requests, but they responded saying:
*guy's name* confirmed it worked. It is a post and the content type is json.
Is it possible to retrieve data using a POST
request instead of GET
?