@dmunozgaete
Hola!, Yo soy
RESTFul
Diseño
Rapidez
Conocimiento
ODATA
C#
Emprendimiento
Microservicios
API
Programación
GALE
Servicios
Fabric
Experiencia
Soluciones
Escalable
Calidad
Código HTTP Operación Descripción
200 OK GET, PUT, DELETE Resource No error, operation successful
201 Created POST Resource was created Successful creation of a resource.
204 No Content GET, PUT, DELETE N/A The request was processed successfully, but no response body is needed
400 Bad Request GET, POST, PUT, DELETE Malformed syntax or a bad query.
401 Unauthorized GET, POST, PUT, DELETE Action requires user authentication
403 Forbidden GET, POST, PUT, DELETE Authentication failure or invalid Application ID.
404 Not Found GET, POST, PUT, DELETE Resource not found.
408 Request Timeout GET, POST Request has timed out.
500 Server Error GET, POST, PUT Internal server error.
501 Not Implemented POST, PUT, DELETE Requested HTTP operation not supported.
Tipo de formato Requerido Encabezado Content-Type
JSON application/json
XML application/xml
XHTML application/xhtml+xml
1
2
3
Request URL: http://piik.in/v1/users/10
Method: GET
Status Code: 200 OK
{
"id": 10,
"nombre": ”David",
”roles": [
{
"id": 10
},
{
"id": 11
}
]
}
{
"id": 10,
"nombre": ”David",
”roles": [
{
”role": "http://piik.in/v1/roles/10"
},
{
”role": "http://piik.in/v1/roles/11"
}
]
}
Sin HATEOAS Con HATEOAS
RESTFul
Diseño
Rapidez
Conocimiento
ODATA
C#
Emprendimiento
Microservicios
API
Programación
GALE
Servicios
Fabric
Experiencia
Soluciones
Escalable
Calidad
GET http://piik.in/v1/Users?$limit=10&$offset=0&
$filter=name contains ‘David’
{
"offset": 0,
"limit": 10,
"total": 9,
"elapsedTime": "00:00:00.0570876",
"items": [ {
"token": "30e517b6-5f76-4fd3-8668-fefae56c8519",
"createdAt": "2016-02-27T12:30:43.65-03:00",
"email": ”dmunozgaete@gmail.com",
”name": ”David Antonio Muñoz Gaete”
},
{
"token": "30e517b6-5f76-4fd3-8668-fefae56c8519”
….......
Request URL: http://piik.in/v1/users/10
Request Method: GET
Status Code: 200 OK
Request URL: http://piik.in/v2/users/10
Request Method: GET
Status Code: 200 OK
Versión 1 Versión 2
Haga clic en el icono
para agregar una
imagen
Pro Tip: Gale implementa de forma “nativa” todo lo que hemos visto hasta ahora.
RESTFul
Diseño
Rapidez
Conocimiento
ODATA
C#
Emprendimiento
Microservicios
API
Programación
GALE
Servicios
Fabric
Experiencia
Soluciones
Escalable
Calidad
Puedes seguir mis aventuras en:
https://github.com/dmunozgaete
https://twitter.com/DMunozGaete
https://cl.linkedin.com/in/dmunozgaete
Gale RESTFul API Framework
Esta presentación no hubiera sido lo mismo sin:
David Muñoz Gaete
Arquitecto de Software
Mentor Técnico
Emprendedor

Rest whatever

Notas del editor

  • #7 HATEOAS (Hypermedia As The Engine Of Application State (hipermedia como motor del estado de la aplicación))
  • #14 hipermedia como motor del estado de la aplicación