mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
50 lines
1.8 KiB
HTML
50 lines
1.8 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<link href='../../../../sailing-fontface-1.0.cache.css' media='screen' rel='stylesheet' title='Default stylesheet' type='text/css' />
|
|
<link href='../../../main.css' media='screen' rel='stylesheet' title='Default stylesheet' type='text/css' />
|
|
<link rel='icon' href='../../../../sap.ico' type='image/x-icon'>
|
|
<title>SAP Sailing Analytics Webservices API Version 1.0 Beta</title>
|
|
</head>
|
|
<body>
|
|
<h1>SAP Sailing Analytics Webservices API Version 1.0 Beta</h1>
|
|
<h2>URL: /api/v1/regattas/{regattaname}/races/{racename}/targettime</h2>
|
|
|
|
<b>Description:</b>
|
|
<p>Gets the estimated time it will take to sail a race. The mark positions and the wind data are
|
|
taken from the optional timeasmillis parameter which defaults to the current time. Note that sometimes the marks are not in place yet
|
|
when the race starts and that a windward mark may be collected already before the race finishes.
|
|
</p>
|
|
<br/>
|
|
<table>
|
|
<tr>
|
|
<td>Webservice Type:</td>
|
|
<td>REST</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Output format:</td>
|
|
<td>Json</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Mandatory parameters:</td>
|
|
<td>None</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Optional parameters:</td>
|
|
<td>timeasmillis [default: current time on server]</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Request method:</td>
|
|
<td>GET</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Example:</td>
|
|
<td><a href="http://www.sapsailing.com/sailingserver/api/v1/regattas/TW%202013%20(Finn)/races/Finn%20Race%204/targettime?timeasmillis=1431433847707">http://www.sapsailing.com/sailingserver/api/v1/regattas/TW%202013%20(Finn)/races/Finn%20Race%204/targettime?timeasmillis=1431433847707</a></td>
|
|
</tr>
|
|
</table>
|
|
<div style="height: 1em;"></div>
|
|
<a href="index.html">Back to Web Service Overview</a>
|
|
</body>
|
|
</html>
|