Alexandre Gaigalas
C. Alexander, S. Ishikawa, M. Silverstein, M. Jacobson, I. Fiksdahl-King, and S. Angel. A Pattern Language. Oxford University Press, New York, 1977.
A Pattern Language
Requisitos
Regras
Propriedades
Fatores Derivados de Outros Estilos
Fatores RESTful
Interface Uniforme
}
(Hypermedia as the engine of application state)
Loop de controles de hipermídia + representações
Recurso |
URI | Links |
---|---|---|
Home | /store | /categories, /products |
Lista de Produtos | /products | /products/{id} |
Um Produto | /products/{id} | /categories/{id} |
Lista de Categorias | /categories | /categories/{id} |
Uma Categoria | /categories/{id} | /products/{id} |
{
"_links": {
"self": { "href": "/store" },
"categories": { "href": "/categories" },
"products": { "href": "/products "}
}
}
{
"_links": {
"self": { "href": "/products" },
"parent": { "href": "/store" }
},
"_embedded": {
"product": [
{
"_links": {"self": "/products/123"},
"name": "Shirt",
"price": 30.00
},
{
"_links": {"self": "/products/456"},
"name": "Pants",
"price": 30.00
}
]
}
}