//p[class='ErrorMessage']/text() and
//p[class='ErrorDescription']/text().//p[class='ErrorMessage']/text()
value described above is accessible by //p[2]/text() in
the error response from both these web services and their hosting
application server. Likewise, the //p[class='ErrorDescription']/text()
value described above is accessible by //p[3]/text() in
the error response from both these web services and their hosting
application server. OPTIONS requests with Origin
header) is not implemented. This limitation should not be
significant since these web services consist only of simple requests (just GET and
POST). The preflight request is only required for non-simple
requests.java.net.HttpURLConnectioncom.sun.jersey.api.client)javax.xml.bind)javax.xmlcurl,
xsltproc, and xmllint. Here is the output from running the example.| Category |
Operation |
Implementation |
Details |
|---|---|---|---|
| Metadata |
Get WADL |
OPTIONS / |
Details |
| Get About Info. |
GET /about |
||
| Get Privacy Info. |
GET /privacy |
||
| Get Term Of Use Info. |
Get /termsOfUse |
||
| Get Dataviews |
GET /dataviews |
Details |
|
| Get ObservatoryGroups |
GET
/dataviews/{dataview}/observatoryGroups? instrumentType={instrumentType} |
Details |
|
| Get IntrumentTypes |
GET
/dataviews/{dataview}/instrumentTypes? observatory={observatory}& observatoryGroup={observatoryGroup} |
Details |
|
| Get Intruments |
GET
/dataviews/{dataview}/instruments? observatory={observatory} |
Details |
|
| Get Observatories |
GET
/dataviews/{dataview}/observatories? instrument={instrument}& instrumentType={instrumentType} |
Details |
|
| GET
/dataviews/{dataview}/description |
|||
| Get Dataset |
GET
/dataviews/{dataview}/datasets? observatoryGroup={observatoryGroup}& instrumentType={instrumentType}& observatory={observatory}& instrument={instrument}& startDate={startDate}& stopDate={stopDate}& idPattern={idPattern}& labelPattern={labelPattern}& notesPattern={notesPattern} |
Details |
|
| Get Inventory |
GET
/dataviews/{dataview}/datasets/{dataset}/inventory |
Details |
|
| Get Variables |
GET
/dataviews/{dataview}/datasets/{dataset}/variables |
Details |
|
| Data |
Get Data |
POST
/dataviews/{dataview}/datasets |
Details |
| GET
/dataviews/{dataview}/datasets/{dataset}/data/ {start-time},{stop-time}/ {var1},{varn}?format={format}& options={options}& cdfVersion={cdfVersion}& thumbnailId={id}&thumbnail={num} |
Details |
||
| GET
/dataviews/{dataview}/datasets/{dataset}/orig_data/ {start-time},{stop-time}/ |
Details |
$ curl --request OPTIONS http://cdaweb.gsfc.nasa.gov/WS/cdasr/1 | xmllint --format -
| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews |
|
| Significant
Request Headers |
Accept |
application/xml |
| application/json |
||
| If-Modified-Since |
||
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type:
application/xml |
As specified by Dataviews in CDAS.xsd |
| Content-Type: application/json |
JSON representation of Dataviews
in CDAS.xsd |
|
| Most
Likely Response Codes |
200 |
Ok |
| 304 |
||
| 406 |
| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews/{dataview}/observatoryGroups? instrumentType={instrumentType} |
|
| Significant
Request Headers |
Accept |
application/xml |
| application/json |
||
| If-Modified-Since |
||
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type:
application/xml |
As specified by
ObservatoryGroups in CDAS.xsd |
| Content-Type: application/json |
JSON representation of Dataviews
in CDAS.xsd |
|
| Most
Likely Response Codes |
200 |
Ok |
| 304 |
||
| 406 |
/InstrumentTypes/InstrumentTypeDescription/Name)
from those returned by a Get InstrumentTypes
request. Omitting this parameter indicates that no observatories
are eliminated based upon their instrumentType value.| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews/{dataview}/instrumentTypes? observatory={observatory}& observatoryGroup={observatoryGroup} |
|
| Significant
Request Headers |
Accept |
application/xml |
| application/json |
||
| If-Modified-Since |
||
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type:
application/xml |
As specified by InstrumentTypes
in CDAS.xsd |
| Content-Type: application/json |
JSON representation of
InstrumentTypes
in CDAS.xsd |
|
| Most
Likely Response Codes |
200 |
Ok |
| 304 |
||
| 406 |
/Observatories/ObservatoryDescription/Name)
from those returned by a Get
Observatories request. Omitting this parameter indicates that
no instrumentTypes are eliminated based upon their observatory value./ObservatoryGroups/ObservatoryGroupDescription/Name)
from those returned by a Get ObservatoryGroups
request. Omitting this parameter indicates that no
instrumentTypes are eliminated based upon their observatoryGroup value.| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews/{dataview}/instruments? observatory={observatory} |
|
| Significant
Request Headers |
Accept |
application/xml |
| application/json |
||
| If-Modified-Since |
||
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type:
application/xml |
As specified by Instruments in CDAS.xsd |
| Content-Type: application/json |
JSON representation of
Instruments
in CDAS.xsd |
|
| Most
Likely Response Codes |
200 |
Ok |
| 304 |
||
| 406 |
/Observatories/ObservatoryDescription/Name)
from those returned by a Get
Observatories request. Omitting this parameter indicates that
no instruments are eliminated based upon their observatory value.| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews/{dataview}/observatories? instrument={instrument}& instrumentType={instrumentType} |
|
| Significant
Request Headers |
Accept |
application/xml |
| application/json |
||
| If-Modified-Since |
||
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type:
application/xml |
As specified by Observatories in
CDAS.xsd |
| Content-Type: application/json |
JSON representation of
Observatories
in CDAS.xsd |
|
| Most
Likely Response Codes |
200 |
Ok |
| 304 |
||
| 406 |
/Instruments/InstrumentDescription/Name)
from those returned by a Get
Instruments request. Omitting this parameter indicates that
no observatories are eliminated based upon their instrument value./InstrumentTypes/InstrumentTypeDescription/Name)
from those returned by a Get InstrumentTypes
request. Omitting this parameter indicates that no observatories
are eliminated based upon their instrumentType value.| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews/{dataview}/datasets? observatoryGroup={observatoryGroup}& instrumentType={instrumentType}& observatory={observatory}& instrument={instrument}& startDate={startDate}& stopDate={stopDate}& idPattern={idPattern}& labelPattern={labelPattern}& notesPattern={notesPattern} |
|
| Significant
Request Headers |
Accept |
application/xml |
| application/json |
||
| If-Modified-Since |
||
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type:
application/xml |
As specified by Datasets in CDAS.xsd |
| Content-Type: application/json |
JSON representation of Datasets
in CDAS.xsd |
|
| Most
Likely Response Codes |
200 |
Ok |
| 304 |
||
| 404 |
||
| 406 |
/ObservatoryGroups/ObservatoryGroupDescription/Name)
from those returned by a Get
ObservatoryGroups request. Omitting this parameter indicates
that no datasets are eliminated based upon their observatoryGroup value./InstrumentTypes/InstrumentTypeDescription/Name)
from those returned by a Get
InstrumentTypes request. Omitting this parameter indicates
that no datasets are eliminated based upon their instrumentType value./Observatories/ObservatoryDescription/Name)
from those returned by a Get Observatories
request. Omitting this parameter indicates that no datasets are
eliminated based upon their observatory value./Instruments/InstrumentDescription/Name)
from those returned by a Get Instruments
request. Omitting this parameter indicates that no datasets are
eliminated based upon their instrument value.java.util.regex compatible regular expression that
must match the dataset's identifier value. Omitting this
parameter is equivalent to ".*".java.util.regex compatible regular expression that
must match the dataset's label text. Omitting this
parameter is equivalent to ".*". Embedded matching
flag expressions (e.g., (?i) for case insensitive match
mode) are supported and likely to be useful in this case.java.util.regex compatible regular expression that
must match the dataset's notes text. Omitting this
parameter is equivalent to ".*". Embedded matching
flag expressions (e.g., (?s) for dotall match mode) are
supported and likely to be useful in this case. java.util.regex expression (e.g., notesPattern="(?s)(?i).*apollo(12|15).*").| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews/{dataview}/datasets/{dataset}/inventory | |
| Significant
Request Headers |
Accept |
application/xml |
| application/json | ||
| If-Modified-Since |
||
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type: application/xml |
As specified by Inventory from CDAS.xsd |
| Content-Type: application/json |
JSON representation of
Inventory |
|
| Most Likely Reponse Codes |
200 |
Ok |
| 304 |
Not Modified |
|
| 404 |
Not Found |
|
| 406 |
Not Acceptable |
|
| 415 |
Unsupported Media Type |
| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews/{dataview}/datasets/{dataset}/variables | |
| Significant
Request Headers |
Accept |
application/xml |
| application/json | ||
| If-Modified-Since |
||
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type: application/xml |
As specified by Variables from CDAS.xsd |
| Content-Type: application/json |
JSON representation of Variables |
|
| Most Likely Reponse Codes |
200 |
Ok |
| 304 |
Not Modified |
|
| 404 |
Not Found |
|
| 406 |
Not Acceptable |
|
| 415 |
Unsupported Media Type |
| HTTP Method |
POST |
|
|---|---|---|
| URI |
/dataviews/{dataview}/datasets/ | |
| Significant
Request Headers |
Accept |
application/xml |
| application/json | ||
| If-Modified-Since | This
is only meaningful when original CDF files are being requested. |
|
| Request Entity |
As specified by DataRequest in CDAS.xsd |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type:
application/xml |
As
specified by DataResult in CDAS.xsd |
| Content-Type: application/json |
JSON representation of DataResult |
|
| Most Likely Reponse Codes |
200 |
Ok |
| 304 |
Not Modified |
|
| 404 |
Not Found |
|
| 406 |
Not Acceptable |
|
| 415 |
Unsupported Media Type |
| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews/{dataview}/datasets/{dataset}/data/ {start-time},{stop-time}/ {var1},{varn}?format={format}& options={options}& cdfVersion={cdfVersion}& &thumbnailId={id}&thumbnail={num} see notes below for further details |
|
| Significant
Request Headers |
Accept |
application/xml |
| application/json | ||
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type:
application/xml |
As specified by DataResult in CDAS.xsd |
| Content-Type: application/json |
JSON representation of DataResult | |
| Most Likely Reponse Codes |
200 |
Ok |
| 304 |
Not Modified |
|
| 400 |
Bad Request (refer to
entity-body for specifics) |
|
| 404 |
Not Found |
|
| 406 |
Not Acceptable |
|
| 415 |
Unsupported Media Type |
start-time is the beginning time of an interval in
basic (minimal
number of separators) ISO 8601 format. Extended ISO 8601 format
is not allowed.stop-time is the ending time of an interval in
basic (minimal
number of separators) ISO 8601 format. Extended ISO 8601 format
is not allowed.var1,varn are the comma separated list of variable
names identifying the data to get. The names should be from those
returned by the Get Variables operation.
At least one variable name must be specified when format=text,
format=gif, format=png, format=ps,
or format=pdf. When format=cdf, you may use
ALL-VARIABLES instead of specifying all the individual
variable names. format is the output representation of the
requested data:cdf requests the data in the binary CDF file
format (any other format options are ignored).text requests the data in an ASCII text
representation (any other format options are ignored).cdfVersion is the CDF file version that any created
CDF files should be (2 or 3). This value is ignored for any
format value other than CDF.options is an integer value defined by a bitwise
inclusive OR of
the following values:thumbnailId is the value that was returned by a
previous call
that returned an image of thumbnail images. This parameter should
not be given for calls that are not requesting the expansion of a
thumbnail image.thumbnail is the number of the thumbnail whose
expanded image is
now being requested. Thumbnail images are counted beginning at
one
(not zero). This parameter should not be given for calls
that are not requesting the expansion of a thumbnail image.| HTTP Method |
GET |
|
|---|---|---|
| URI |
/dataviews/{dataview}/datasets/{dataset}/orig_data/ {start-time},{stop-time}/ see notes below for further details |
|
| Significant
Request Headers |
Accept |
application/xml |
| application/json | ||
| If-Modified-Since | Only get files that have been
modified since this date. |
|
| Request Entity |
none |
|
| Significant Response Headers |
Last-Modified |
|
| Response
Entity |
Content-Type:
application/xml |
As specified by DataResult in CDAS.xsd |
| Content-Type: application/json |
JSON representation of DataResult | |
| Most Likely Reponse Codes |
200 |
Ok |
| 304 |
Not Modified |
|
| 400 |
Bad Request (refer to
entity-body for specifics) |
|
| 404 |
Not Found |
|
| 406 |
Not Acceptable |
|
| 415 |
Unsupported Media Type |
start-time is the beginning time of an interval in
basic (minimal
number of separators) ISO 8601 format. Extended ISO 8601 format
is not allowed.stop-time is the ending time of an interval in
basic (minimal
number of separators) ISO 8601 format. Extended ISO 8601 format
is not allowed.Questions or comments concerning these Web services should be sent to CDAS Feedback.