Page tree

Versions Compared

Key

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

...

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

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

{
    "data": [{
        "type" : "resources", 
        "id" : "person",
        "title": "A person",
        "links": { 
            "self" : "https://api.flarecast.eu/v1/persons/"
        },
    }, {
        "type" : "resources", 
        "id" : "algorithm",
        "title": "Algorithm or other software artifact",
        "links": { 
            "self" : "https://api.flarecast.eu/v1/algorithms/"
        },
    }, {
        "type" : "resources", 
        "id" : "feature",
        "title": "Features accessible through this API",
        "links": { 
            "self" : "https://api.flarecast.eu/v1/features/"
        },
    }, {
        "type" : "resources", 
        "id" : "observations",
        "title": "Observations accessible through this API",
        "links": {
            "self" : "https://api.flarecast.eu/v1/observations/"
        },
    }, 
	...
    ]
  }
Code Block
languagejs
titleHomegrown
{    
  "people" : {
    "description": "Persons or groups responsible"
    "baseURL": "https://api.flarecast.eu/people/"
  },
  "algorithms" : {
    "description" : "Registered algorithms (read-only)",
    "baseURL" : "https://api.flarecast.eu/algorithms/"
  },
  "features" : {
    "description" : "Features accessible through this API",
    "baseURL" : "https://api.flarecast.eu/features/"
  },
  "observations" : {
    "description" : "Observations accessible through this API",
    "baseURL" : "https://api.flarecast.eu/observations/"
  },
  ...
}

Observations

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

...