GOintegro / HATEOAS (example)
An example app using the GOintegro HATEOAS bundle.
Here's a small example app, so you can feel the HATEOAS magic in your finger tips without much ado.
If you have SQLite and a couple of minutes, you can
- clone the project,
- install the Composer deps,
- run
app/console doctrine:schema:createto setup the db, - run
app/console server:runto run the app at127.0.0.1:8000, - run
app/console doctrine:fixtures:load --fixtures=src/HateoasInc/Bundle/ExampleBundle/DataFixtures/ORMto get some data,
and try out the HATEOAS API on http://127.0.0.1:8000/api/v1.
Configure a REST client to use basic auth with the following credentials.
-
Player 1
- username:
this_guy - password:
cl34rt3xt
- username:
-
Player 2
- username:
the_other_guy - password:
b4dp4ssw0rd
- username:
The resources /user-groups, /users, /posts, and /comments are available.
Cheers.