HttpCode 201, {"message": "Successfully imported"} --> When the leagueCode was
successfully imported.
HttpCode 409, {"message": "League already imported"} --> If the given
leagueCode was already imported into the DB (and in this case, it doesn't need
to be imported again).
HttpCode 404, {"message": "Not found" } --> if the leagueCode was not found.
HttpCode 504, {"message": "Server Error" } --> If there is any connectivity
issue either with the football API or the DB server.
400 Bad Request | Your request was malformed. Most likely the value of a Filter was not set according to the Data Type that is expected.
403 Restricted Resource | You tried to access a resource that exists, but is not available to you. This can be due to the following reasons:the resource is only available to authenticated clients.the resource is only available to clients with a paid subscription.the resource is not available in the API version you are using.
404 Not Found | You tried to access a resource that doesn't exist
429 Too Many Requests | You exceeded your API request quota. See Request-Throttling for more information.
A request to
http://localhost:<port>/import-league/CL
must import into the Database.id = CL
.DB minimal data
Responses
HttpCode 201, {"message": "Successfully imported"} --> When the leagueCode was successfully imported.
HttpCode 409, {"message": "League already imported"} --> If the given leagueCode was already imported into the DB (and in this case, it doesn't need to be imported again).
HttpCode 404, {"message": "Not found" } --> if the leagueCode was not found.
HttpCode 504, {"message": "Server Error" } --> If there is any connectivity issue either with the football API or the DB server.