bug4479 added documentation to new putWind endpoint

This commit is contained in:
Kai Börnert committed 2018-07-03 15:32:49 +02:00
1 parent 37b75222b5
commit 288570483c
2 files changed
+5 -7

No files matched your search

@@ -251,7 +251,7 @@ name to make sure you get to the event you're interested in.
</tr>
</tr>
<tr>
<td><a href="putWind.html">/api/v1/boats</a></td>
<td><a href="putWind.html">/api/v1/wind/putWind</a></td>
<td>Allows to add wind values to 1-x races, similar to AdminConsole</td>
</tr>
</tbody>
@@ -25,16 +25,14 @@
</tr>
<tr>
<td>Mandatory parameters:</td>
<td>windData</td>
<td>regattaName</td>
<td>raceName</td>
<td>windSourceType</td>
<td>windSourceId</td>
<td>windData, regattaName, raceName, windSourceType, windSourceId</td>
</tr>
<tr>
<td>Examples:</td>
<td>
{"windData":[{"position":{"latitude_deg":1,"longitude_deg":1},"timepoint":1234,"direction":120}],"regattaName":"Cardiff","raceName":"R1","windSourceType":"WEB","windSourceId":"rest tracker id"}
Request: <br> {"windData":[{"position":{"latitude_deg":1,"longitude_deg":1},"timepoint":1234,"direction":120}],"regattaName":"Cardiff","raceName":"R1","windSourceType":"WEB","windSourceId":"rest tracker id"}
<br>
Answer: <br> {"R1":[true]}
</td>
</tr>
</table>