An open API service indexing awesome lists of open source software.

https://github.com/nerdfiles/api.senecajs.rest_api

🌭 Microservices-based REST API for clients following HATEOAS.
https://github.com/nerdfiles/api.senecajs.rest_api

expressjs hypermedia-api rest seneca-entity seneca-web-adapter-connect senecajs

Last synced: about 1 year ago
JSON representation

🌭 Microservices-based REST API for clients following HATEOAS.

Awesome Lists containing this project

README

          

# 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:

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

## wut?

Do [*actions*][action] 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...

[action]: https://schema.org/Action