Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 960 Bytes

File metadata and controls

47 lines (36 loc) · 960 Bytes

API.SenecaJS.REST_API

$ npm i && npm i jq -g
$ bin/program -h
$ bin/program service

Elsewhere:

$ source scripts/resty.sh
$ resty.set 'http://localhost:8081/api'
$ GET /noop | jq '.'

We should see a broke-ass HAL-ish JSON output:

{
  "_links": {
    "self": {
      "href": "/noop"
    },
    "test": {
      "href": "/noop/test"
    }
  },
  "name": "noop",
  "data": "yellowfish"
}

wut?

Do actions from or against models as role-based commands which will result in statuses. Configure contracts and components to taste, bearing in mind...

If the engine of application state (and hence the API) is not being driven by hypertext, then it cannot be RESTful and cannot be a REST API. Period. Is there some broken manual somewhere that needs to be fixed?

Roy Fielding

Updates

Coming soon...