Skip to content

Commit

Permalink
Merge pull request #76 from grandcentrix/http_methods_enum
Browse files Browse the repository at this point in the history
Add enum for HTTP methods.
  • Loading branch information
kevinswiber authored Nov 23, 2016
2 parents 8bd8b6f + 873bad3 commit 183e3b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions siren.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@
"method": {
"description": "An enumerated attribute mapping to a protocol method. For HTTP, these values may be GET, PUT, POST, DELETE, or PATCH. As new methods are introduced, this list can be extended. If this attribute is omitted, GET should be assumed.",
"type": "string",
"enum": [
"DELETE",
"GET",
"PATCH",
"POST",
"PUT"
],
"default": "GET"
},
"href": {
Expand Down

0 comments on commit 183e3b4

Please sign in to comment.