Está en la página 1de 17

Respuestas de un Api Rest

Alejandro Marcano
Métodos de comunicación HTTP

• GET: Transfer a current representation of the target resource.


• HEAD: Same as GET, but only transfer the status line and header section.
• POST: Perform resource-specific processing on the request payload.
• PUT: Replace all current representations of the target resource with the request
payload.
• DELETE: Remove all current representations of the target resource.
• CONNECT: Establish a tunnel to the server identified by the target resource
• OPTIONS: Describe the communication options for the target resource.
• TRACE: Perform a message loop-back test along the path to the target resource.
Ivisualidor{
mostrar (evaluacion)
}

Visualizacion PDF Visualizacion WEB

mostrar( evaluacion){ mostrar(evalualcion: evaluacion){

console.log(‘PDF EVALUACION’) console.log(‘WEB EVALUACION’)


}
}
Métodos según IANA
Códigos de éxito (2xx)
› 2xx:por defecto cualquier código que vaya del 200 al 299
es un mensaje de éxito
› 200: Ok
– GET: una representación de los datos obtenidos

– HEAD: parecido al GET, solo que no obtiene la data del objeto


buscado

– POST: Alguna representación del estado de la petición (exitoso,


activado, creado…) o los datos de resultado obtenido tras el
petición.
Códigos de éxito (2xx)

Código 200

– PUT, DELETE: Alguna representación del estado de la petición


(exitoso, activado, creado…).

– OPTIONS: Alguna representación de la opciones de


comunicación que posee

– TRACE: una representación del mensaje de solicitud tal como lo


recibió el final servidor.
Códigos de éxito (2xx)

Código 200
El código 200 siempre tiene
payload, asi sea de longitud 0

El Codigo 200 siempre es


cacheable
Referencias en:
› RFC 7231: https://datatracker.ietf.org/doc/html/rfc7231
› IANA METHODS: https://
www.iana.org/assignments/http-methods/http-methods.
xhtml
› IANA STATUS CODE: https://
www.iana.org/assignments/http-status-codes/http-statu
s-codes.xhtml

Título y diseño de contenido con gráfico

Categoría 4

Categoría 3

Categoría 2

Categoría 1

0 2 4 6 8 10 12 14

Serie 1 Serie 2 Serie 3


Diseño de dos objetos con tabla
Clase Grupo A Grupo B › Primera viñeta aquí
Clase 1 82 95 › Segunda viñeta aquí
Clase 2 76 88 › Tercera viñeta aquí
Clase 3 84 90
Diseño de dos objetos con SmartArt
› Primera viñeta aquí
A •Tarea 1
•Tarea 2
› Segunda viñeta aquí
› Tercera viñeta aquí

B •Tarea 1
•Tarea 2

C •Tarea 1
•Tarea 2
Agregar un título de
diapositiva (1)
Agregar un título de diapositiva (2)
Agregar un título de diapositiva (3)
AGREGAR UN
TÍTULO DE
DIAPOSITIVA (4)
AGREGAR UN Haga clic en el icono para agregar una imagen
TÍTULO DE
DIAPOSITIVA (5)

También podría gustarte