Skip to content

Instantly share code, notes, and snippets.

@sammyhenningsson
Last active August 12, 2020 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sammyhenningsson/2103d839eb79a7baf8854bfb96bda7ae to your computer and use it in GitHub Desktop.
Save sammyhenningsson/2103d839eb79a7baf8854bfb96bda7ae to your computer and use it in GitHub Desktop.
Http method extension to ALPS profiles

Extending ALPS profiles with HTTP methods

An ALPS extension with id = http_method describes which HTTP methods is supported for the corresponding link relation. The value property specifies an array of strings with all supported HTTP methods.
This extension may only be used for descriptors of type safe, idempotent or unsafe.

Example

{
  "alps": {
    "version": "1.0",
    "descriptor": [
      {
        "id": "delete",
        "type": "idempotent",
        "href": "/doc/profiles/shaf-basic#delete",
        "name": "delete",
        "ext": {
          "id": "http_method",
          "href": "https://gist.github.com/sammyhenningsson/2103d839eb79a7baf8854bfb96bda7ae",
          "value": [
            "DELETE"
          ]
        }
      }
    ]
  }
}
     
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment