Google Docs: https://www.youtube.com/watch?v=2ZHf9JrG-sE&list=PLG1qdjD__qH4sftbDnm383KqPDpn9u0Rt
Google Sheets: https://www.youtube.com/watch?v=Z2VMC7p5J2Q&list=PLG1qdjD__qH7elIRiQoqRdY0ZzThfLnxn
jueves, 16 de julio de 2020
viernes, 10 de julio de 2020
Tutorial API REST con Java (JAX-RS) (sin Maven ni Spring Boot)
https://www.oscarblancarteblog.com/api-rest-java-jax-rs/
Para responder con JSON:
@GET
@Path("/json")
public Response getJsonResponse() {
Person person = new Person("Abhinayak", "Nepal");
return Response
.status(Response.Status.OK)
.entity(person)
.type(MediaType.APPLICATION_JSON)
.build();
}
Para responder con JSON:
@GET
@Path("/json")
public Response getJsonResponse() {
Person person = new Person("Abhinayak", "Nepal");
return Response
.status(Response.Status.OK)
.entity(person)
.type(MediaType.APPLICATION_JSON)
.build();
}
Suscribirse a:
Entradas (Atom)