fabric8io/fabric8 — pull request #2798 by zmhassan (2014-10-12 23:47:33+00:00)
Title: Issue2667 - Improve REST API URL consistency 

Converted fabric rest api to a HATEOAS response and also update endpoints controlling fabrics start and stop operations and deleting of containers. Below is the output returned by the json:

```javascript
...
...
"mvn:org.ops4j.pax.swissbox/pax-swissbox-core/1.7.0",
"mvn:org.ops4j.pax.url/pax-url-aether/2.1.0",
"mvn:org.ops4j.pax.url/pax-url-wrap/2.1.0/jar/uber",
"mvn:org.ops4j.pax.web/pax-web-api/3.1.2",
"mvn:org.ops4j.pax.web/pax-web-deployer/3.1.2",
"mvn:org.ops4j.pax.web/pax-web-extender-war/3.1.2",
"mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/3.1.2",
"mvn:org.ops4j.pax.web/pax-web-jetty/3.1.2",
"mvn:org.ops4j.pax.web/pax-web-jsp/3.1.2",
"mvn:org.ops4j.pax.web/pax-web-runtime/3.1.2",
"mvn:org.ops4j.pax.web/pax-web-spi/3.1.2",
"mvn:org.ow2.asm/asm-all/5.0.3",
"mvn:org.scala-lang/scala-library/2.10.2"
],
"processId": 23055,
"links": [
{
"name": "Container Status",
"links": [
{
"rel": "self",
"href": "http://localhost:8181/cxf/fabric8/container/child/status"
}
],
"attribute": {
"method": "GET"
}
},
{
"name": "Start Container",
"links": [
{
"rel": "self",
"href": "http://localhost:8181/cxf/fabric8/container/child/start"
}
],
"attribute": {
"method": "POST"
}
},
{
"name": "Stop Container",
"links": [
{
"rel": "self",
"href": "http://localhost:8181/cxf/fabric8/container/child/stop"
}
],
"attribute": {
"method": "POST"
}
},
{
"name": "Delete Container",
"links": [
{
"rel": "self",
"href": "http://localhost:8181/cxf/fabric8/container/child"
}
],
"attribute": {
"method": "DELETE"
}
},
{
"name": "Container Status",
"links": [
{
"rel": "self",
"href": "http://localhost:8181/cxf/fabric8/container/child2/status"
}
],
"attribute": {
"method": "GET"
}
},
{
"name": "Start Container",
"links": [
{
"rel": "self",
"href": "http://localhost:8181/cxf/fabric8/container/child2/start"
}
],
"attribute": {
"method": "POST"
}
},
{
"name": "Stop Container",
"links": [
{
"rel": "self",
"href": "http://localhost:8181/cxf/fabric8/container/child2/stop"
}
],
"attribute": {
"method": "POST"
}
},
{
"name": "Delete Container",
"links": [
{
"rel": "self",
"href": "http://localhost:8181/cxf/fabric8/container/child2"
}
],
"attribute": {
"method": "DELETE"
}
}
]

}
```