You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hapi-dev/HAPI-data-access-spec-dev.md
+56-55
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Version 3.0.0-dev \| Heliophysics Data and Model Consortium (HDMC) \|
5
5
6
6
**This is the development version of the HAPI Data Access Specification.**
7
7
8
-
The most recent stable release is [Version 2.1.0](https://github.com/hapi-server/data-specification/tree/master/hapi-2.1.0).
8
+
The most recent stable release is [Version 2.1.1](https://github.com/hapi-server/data-specification/tree/master/hapi-2.1.1).
9
9
10
10
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
11
11
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
@@ -43,6 +43,17 @@ Table of Contents
43
43
44
44
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
45
45
46
+
Major API Changes
47
+
============
48
+
49
+
HAPI 3.0 is backward-compatable except
50
+
51
+
In HAPI 3.0,
52
+
1. the URL parameter `id` was replaced with `dataset`.
53
+
2.`time.min` and `time.max` were replaced with `start` and `stop`, respectively.
54
+
55
+
HAPI 3.X servers must accept both parameter names, but HAPI 2.X servers will respond with an error if the new URL parameter names are used. These changes were discussed in issue [#77](https://github.com/hapi-server/data-specification/issues/77).
56
+
46
57
47
58
Introduction
48
59
============
@@ -96,12 +107,12 @@ while hiding actual storage details.
96
107
**request parameter** – keywords that appear after the ‘?’ in a URL with a GET
97
108
request.
98
109
99
-
Consider this example GET request:
110
+
Consider this example GET request[<sup>*</sup>](#major-api-changes):
|id|**Required** The identifier for the dataset. |
730
-
|time.min|**Required** The inclusive begin time for the data to include in the response. |
731
-
|time.max|**Required** The exclusive end time for the data to include in the response. |
735
+
|dataset[<sup>*</sup>](#major-api-changes)|**Required** The identifier for the dataset. |
736
+
|start[<sup>*</sup>](#major-api-changes)|**Required** The inclusive begin time for the data to include in the response. |
737
+
|stop[<sup>*</sup>](#major-api-changes)|**Required** The exclusive end time for the data to include in the response. |
732
738
| parameters |**Optional** A comma-separated list of parameters to include in the response. Default is all parameters. |
733
739
| include |**Optional** Has one possible value of "header" to indicate that the info header should precede the data. The header lines will be prefixed with the "\#" character. |
734
740
| format |**Optional** The desired format for the data stream. Possible values are "csv", "binary", and "json". |
@@ -756,8 +762,8 @@ The first parameter in the data must be a time column (type of "isotime") and
756
762
this must be the independent variable for the dataset. If a subset of parameters
757
763
is requested, the time column is always provided, even if it is not requested.
758
764
759
-
Note that the `time.min` request parameter represents an inclusive lower bound
760
-
and `time.max` request parameter is the exclusive upper bound. The server must
765
+
Note that the `start` request parameter represents an inclusive lower bound
766
+
and `stop` request parameter is the exclusive upper bound. The server must
761
767
return data records within these time constraints, i.e., no extra records
762
768
outside the requested time range. This enables concatenation of results from
763
769
adjacent time ranges.
@@ -784,12 +790,12 @@ contain fewer parameters, but must not rearrange the order of any parameters.
784
790
Duplicates are not allowed.
785
791
786
792
Consider the following dataset header for a fictional dataset with
787
-
the identifier MY\_MAG\_DATA.
793
+
the identifier `MY_MAG_DATA`.
788
794
789
-
An `info` request for this dataset
795
+
An `info` request for this dataset[<sup>*</sup>](#major-api-changes)
<li><a href="capabilities">capabilities</a> describe the capabilities of the server; this lists the output formats the server can emit (CSV and binary)</li>
1682
1683
<li><a href="catalog">catalog</a> list the datasets that are available; each dataset is associated with a unique id</li>
1683
1684
<li><a href="info">info</a> obtain a description for dataset of a given id; the description defines the parameters in every dataset record</li>
1684
-
<li><a href="data">data</a> stream data content for a dataset of a given id; the streaming request must have time bounds (specified by request parameters time.min and time.max) and may indicate a subset ofparameters (default is all parameters)</li>
1685
+
<li><a href="data">data</a> stream data content for a dataset of a given id; the streaming request must have time bounds (specified by request parameters <code>start</code> and <code>stop</code>) and may indicate a subset ofparameters (default is all parameters)</li>
1685
1686
</ol>
1686
1687
<p> For more information, see <a href="http://spase-group.org/hapi">thisHAPI description</a> at the SPASE web site. </p>
1687
1688
</body>
@@ -1697,9 +1698,9 @@ Appendix B: JSON Object of HAPI Response and Error Codes
1697
1698
"1201": {"status":{"code":1201, "message":"HAPI 1201: OK - no data"}},
1698
1699
"1400": {"status":{"code":1400, "message":"HAPI error 1400: user input error"}},
1699
1700
"1401": {"status":{"code":1401, "message":"HAPI error 1401: unknown API parameter name"}},
1700
-
"1402": {"status":{"code":1402, "message":"HAPI error 1402: error in time.min"}},
1701
-
"1403": {"status":{"code":1403, "message":"HAPI error 1403: error in time.max"}},
1702
-
"1404": {"status":{"code":1404, "message":"HAPI error 1404: time.min equal to or after time.max"}},
1701
+
"1402": {"status":{"code":1402, "message":"HAPI error 1402: error in start"}},
1702
+
"1403": {"status":{"code":1403, "message":"HAPI error 1403: error in stop"}},
1703
+
"1404": {"status":{"code":1404, "message":"HAPI error 1404: start equal to or after stop"}},
1703
1704
"1405": {"status":{"code":1405, "message":"HAPI error 1405: time outside valid range"}},
0 commit comments