Skip to content

how to extend the capabilities of a server? #59

@jvandegriff

Description

@jvandegriff

As people build implementations, there is renewed interested in how to add non-standard features to the server.

Telecon notes from 2017-05-16 have a discussion about this:
https://github.com/hapi-server/data-specification/wiki/telecon-notes

Everyone pretty much agrees that the HAPI endpoints should be kept strict (no extensions - any extra keywords is an error).

We would need a way for people to advertise extensions, presumably in the capabilities endpoints.

{
  "HAPI": "1.1",
  "status": {
    "code": 1200,  "message": "OK"
  },
  "outputFormats": [
    "csv", "binary", "json"
  ]
"extensions": {
    [
        {
            "endpoint": "averaged_data",   (name of endpoint)
            "description": "basic explanation of extension"
         },
         {
            "endpoint": "despiked_data",   (name of endpoint)
            "description": "basic explanation of extension"
          }
     ]
   }
}

The extension endpoint with no parameters IS a human readable landing page describing the parameters taken, and how to use the endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions