En el directorio del proyecto, puede ejecutar:
yarn install
Para instalar las dependencias que necesita la API para su funcionamiento.
Luego ejecutas:
yarn start
Para iniciar al API en modo de desarrollo.
Abre http://localhost:3001 en el navegador.
- Tipo Endpoind:
GET
- URL Endpoing:
[domain:port]/api/hotels
Retorna todos los hoteles.
- Tipo Endpoind:
GET
- URL Endpoing:
[domain:port]/api/hotels/277990
Retorna un solo hotel.
- Tipo Endpoind:
POST
- URL Endpoing:
[domain:port]/api/hotels
Proximamente.
- Tipo Endpoind:
PUT
- URL Endpoing:
[domain:port]/api/hotels/277990
Proximamente.
- Tipo Endpoind:
DELETE
- URL Endpoing:
[domain:port]/api/hotels/277990
Proximamente.