@@ -14,9 +14,14 @@ Syntax
14
14
.. code-block :: http
15
15
16
16
GET /datatypes HTTP/1.1
17
- Host : DOMAIN
17
+ X-Hdf-domain : DOMAIN
18
18
Authorization: <authorization_string>
19
-
19
+
20
+ .. code-block :: http
21
+
22
+ GET /datatypes?domain=DOMAIN HTTP/1.1
23
+ Authorization: <authorization_string>
24
+
20
25
Request Parameters
21
26
------------------
22
27
This implementation of the operation uses the following request parameters (both
@@ -70,82 +75,109 @@ Sample Request
70
75
.. code-block :: http
71
76
72
77
GET /datatypes HTTP/1.1
73
- host: namedtype.test.hdfgroup.org
78
+ Host: hsdshdflab.hdfgroup.org
79
+ X-Hdf-domain: /shared/tall.h5
74
80
Accept-Encoding: gzip, deflate
75
81
Accept: */*
76
- User-Agent: python-requests/2.3.0 CPython/2.7.8 Darwin/14.0.0
77
-
82
+
83
+ Sample cURL command
84
+ -------------------
85
+
86
+ .. code-block :: bash
87
+
88
+ $ curl -X GET --header " X-Hdf-domain: /shared/tall.h5" hsdshdflab.hdfgroup.org/datatypes
89
+
78
90
Sample Response
79
91
---------------
80
92
81
93
.. code-block :: http
82
94
83
95
HTTP/1.1 200 OK
84
- Date: Wed, 21 Jan 2015 22:42:30 GMT
85
- Content-Length: 350
96
+ Date: Fri, 13 Jul 2018 18:23:58 GMT
97
+ Content-Length: 746
86
98
Etag: "e01f56869a9a919b1496c463f3569a2a7c319f11"
87
99
Content-Type: application/json
88
- Server: TornadoServer/3.2.2
89
-
100
+ Server: nginx/1.15.0
101
+
90
102
.. code-block :: json
91
103
92
104
{
93
- "datatypes" : [
94
- " f54542e6-a1b4-11e4-90bf-3c15c2da029e" ,
95
- " f545543d-a1b4-11e4-8fa4-3c15c2da029e"
96
- ],
97
- "hrefs" : [
98
- {"href" : " http://namedtype.test.hdfgroup.org/datatypes" , "rel" : " self" },
99
- {"href" : " http://namedtype.test.hdfgroup.org/groups/f545103d-a1b4-11e4-b4a1-3c15c2da029e" , "rel" : " root" },
100
- {"href" : " http://namedtype.test.hdfgroup.org/" , "rel" : " home" }
101
- ]
105
+ "datatypes" : [
106
+ " t-3e37ab7e-86b3-11e8-bce3-0242ac12000c" ,
107
+ " t-af48f618-86c9-11e8-9cb8-0242ac120008" ,
108
+ " t-b0510adc-86c9-11e8-9361-0242ac120007" ,
109
+ " t-b0e855b8-86c9-11e8-ac22-0242ac12000d" ,
110
+ " t-b17d24fe-86c9-11e8-b364-0242ac12000a" ,
111
+ " t-b21dd3ea-86c9-11e8-9cb8-0242ac120008" ,
112
+ " t-b2b2a380-86c9-11e8-9361-0242ac120007" ,
113
+ " t-b34f3542-86c9-11e8-ac22-0242ac12000d" ,
114
+ " t-b4659570-86c9-11e8-b364-0242ac12000a" ,
115
+ " t-b4f32ffc-86c9-11e8-9cb8-0242ac120008" ,
116
+ " t-b58f2b50-86c9-11e8-9361-0242ac120007" ,
117
+ " t-b66113c2-86c9-11e8-ac22-0242ac12000d" ,
118
+ " t-b6f8e454-86c9-11e8-b364-0242ac12000a"
119
+ ],
120
+ "hrefs" : [
121
+ {"href" : " hsdshdflab.hdfgroup.org/datatypes" , "rel" : " self" },
122
+ {"href" : " hsdshdflab.hdfgroup.org/groups/g-b116b6f0-85e9-11e8-9cc2-0242ac120008" , "rel" : " root" },
123
+ {"href" : " hsdshdflab.hdfgroup.org/" , "rel" : " home" }
124
+ ]
102
125
}
103
-
126
+
104
127
Sample Request with Marker and Limit
105
128
------------------------------------
106
129
107
130
This example uses the "Marker" request parameter to return only UUIDs after the given
108
131
Marker value.
109
- Also the "Limit" request parameter is used to limit the number of UUIDs in the response to 5.
132
+ Also, the "Limit" request parameter is used to limit the number of UUIDs in the response to 5.
110
133
111
134
.. code-block :: http
112
135
113
- GET /datatypes?Marker=d779cd5e-a1e6-11e4-8fc5-3c15c2da029e&Limit=5 HTTP/1.1
114
- host: type1k.test.hdfgroup.org
136
+ GET /datatypes?Marker=t-b17d24fe-86c9-11e8-b364-0242ac12000a&Limit=5 HTTP/1.1
137
+ Host: hsdshdflab.hdfgroup.org
138
+ X-Hdf-domain: /shared/tall.h5
115
139
Accept-Encoding: gzip, deflate
116
140
Accept: */*
117
- User-Agent: python-requests/2.3.0 CPython/2.7.8 Darwin/14.0.0
118
-
141
+
142
+ Sample cURL command
143
+ -------------------
144
+
145
+ *URL enclosed in quotes to prevent shell from seeing ampersand *
146
+
147
+ .. code-block :: bash
148
+
149
+ $ curl -X GET --header " X-Hdf-domain: /shared/tall.h5" " hsdshdflab.hdfgroup.org/datatypes?Marker=t-b17d24fe-86c9-11e8-b364-0242ac12000a&Limit=5"
150
+
119
151
Sample Response with Marker and Limit
120
152
-------------------------------------
121
153
122
154
.. code-block :: http
123
-
155
+
124
156
HTTP/1.1 200 OK
125
- Date: Thu, 22 Jan 2015 03:32:13 GMT
126
- Content-Length: 461
157
+ Date: Fri, 13 Jul 2018 18:30:29 GMT
158
+ Content-Length: 410
127
159
Etag: "a2e2d5a3ae63cd504d02b51d99f27b30d17b75b5"
128
160
Content-Type: application/json
129
- Server: TornadoServer/3.2.2
130
-
161
+ Server: nginx/1.15.0
162
+
131
163
.. code-block :: json
132
-
164
+
133
165
{
134
- "datatypes" : [
135
- " d779ddd9-a1e6-11e4-89e5-3c15c2da029e " ,
136
- " d779ef11-a1e6-11e4-8837-3c15c2da029e " ,
137
- " d77a008a-a1e6-11e4-8840-3c15c2da029e " ,
138
- " d77a121e-a1e6-11e4-b2b0-3c15c2da029e " ,
139
- " d77a2523-a1e6-11e4-aa6d-3c15c2da029e "
140
- ],
141
- "hrefs" : [
142
- {"href" : " http://type1k.test.hdfgroup.org /datatypes" , "rel" : " self" },
143
- {"href" : " http://type1k.test.hdfgroup.org /groups/d7742c14-a1e6-11e4-b2a8-3c15c2da029e " , "rel" : " root" },
144
- {"href" : " http://type1k.test.hdfgroup.org /" , "rel" : " home" }
145
- ]
166
+ "datatypes" : [
167
+ " t-b21dd3ea-86c9-11e8-9cb8-0242ac120008 " ,
168
+ " t-b2b2a380-86c9-11e8-9361-0242ac120007 " ,
169
+ " t-b34f3542-86c9-11e8-ac22-0242ac12000d " ,
170
+ " t-b4659570-86c9-11e8-b364-0242ac12000a " ,
171
+ " t-b4f32ffc-86c9-11e8-9cb8-0242ac120008 "
172
+ ],
173
+ "hrefs" : [
174
+ {"href" : " hsds.local /datatypes" , "rel" : " self" },
175
+ {"href" : " hsds.local /groups/g-b116b6f0-85e9-11e8-9cc2-0242ac120008 " , "rel" : " root" },
176
+ {"href" : " hsds.local /" , "rel" : " home" }
177
+ ]
146
178
}
147
-
148
-
179
+
180
+
149
181
Related Resources
150
182
=================
151
183
@@ -154,6 +186,6 @@ Related Resources
154
186
* :doc: `POST_Datatype `
155
187
* :doc: `../DatasetOps/POST_Dataset `
156
188
* :doc: `../AttrOps/PUT_Attribute `
157
-
189
+
158
190
159
191
0 commit comments