Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


The current proposal is based on http://jsonapi.org/

The corresponding IANA registered media type is: application/vnd.api+json.

Resources

Anything accessible through the API is a "resource". All available resources can be listed.

Get list of observation types
Query
Replace
varrestBaseUrl
/resources/list
Result
Code Block
languagejs
{
	HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

{
    "data": [{
        "peopletype" : {"resources", 
        "descriptionid" : "Personsperson",
or groups responsible"       "title": "A person",
        "baseURLlinks": { 
            "self" : "https://api.flarecast.eu/peoplev1/persons/"
        },
    "algorithms}, {
        "type" : {"resources", 
        "descriptionid" : "Registeredalgorithm",
algorithms (read-only)"        "title": "Algorithm or other software artifact",
        "baseURLlinks": { 
            "self" : "https://api.flarecast.eu/v1/algorithms/"
        },
    }, "features{
        "type" : {"resources", 
        "descriptionid" : "feature",
        "title": "Features accessible through this API",
        "baseURLlinks": { 
            "self" : "https://api.flarecast.eu/v1/features/"
        },
    }, {
        "observationstype" : {"resources", 
        "descriptionid" : "observations",
        "title": "Observations accessible through this API",
        "baseURLlinks": {
            "self" : "https://api.flarecast.eu/v1/observations/"
        },
    }, 
	...
    ]
  }

Observations

The file archive is basically a directory structure from where the files can be loaded through the http:// protocol.

...