Webservice Type: | REST |
Output format: | HTTP 200 + Json or HTTP 400/500 |
Mandatory parameters: |
leaderboard: leaderboard name racecolumn: race column name fleet: fleet name |
Optional parameters: | visibility: public will load only public tags, private will load only private tags, both (default) will load public and private tags |
Request method: | GET |
Example request: | GET https://sapsailing.com/sailingserver/api/v1/{leaderboard}/{racecolumn}/{fleet}/tags |
Example response: |
|
Webservice Type: | REST |
Output format: | HTTP 201 or HTTP 400 |
Mandatory parameters: |
leaderboard: leaderboard name racecolumn: race column name fleet: fleet name |
Mandatory body parameters: |
tag: title of new tag raceTimepoint: timepoint in race where tag will be added, format: unix timestamp * 1000 (milliseconds timepoint) |
Optional body parameters: |
comment: content of comment image: image URL to corresponding image public: true => tag is visible for every user (requires specific permission), false (default) => tag is only visible for current user |
Request method: | POST |
Example request: |
POST https://sapsailing.com/sailingserver/api/v1/{leaderboard}/{racecolumn}/{fleet}/tags tag = "New tag!", comment = "Optional comment", image = "localhost:1234/image.jpg", public = true, raceTimepoint = 1347452185000 |
Webservice Type: | REST |
Output format: | HTTP 204 or HTTP 400 |
Mandatory query parameters: |
leaderboard: leaderboard name racecolumn: race column name fleet: fleet name |
Mandatory body parameters: | tag_json: tag to delete as json (may be missing attributes createdAt and revokedAt as they are not required to identify a tag) |
Optional parameters: | None |
Request method: | DELETE |
Example request: |
DELETE https://sapsailing.com/sailingserver/api/v1/{leaderboard}/{racecolumn}/{fleet}/tags
|
Webservice Type: | REST |
Output format: | Json |
Mandatory URL parameters: |
leaderboard: leaderboard name racecolumn: race column name fleet: fleet name |
Mandatory body parameters: | tag_json: tag to update as json (may be missing attributes createdAt and revokedAt as they are not required to identify a tag) |
Optional parameters: |
When non of these parameters are provided the tag will not be changed. Missing parameters do not affect the tag. To reset a value provide the parameter with the value of an empty string. tag: new title of tagcomment: new comment image: new image URL public: new visibility |
Request method: | PUT |
Example request: |
PUT https://sapsailing.com/sailingserver/api/v1/{leaderboard}/{racecolumn}/{fleet}/tags
|