{"info":{"_postman_id":"6df041e8-5903-4c23-9120-d4aae0a66db2","name":"aladas","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"16169885","collectionId":"6df041e8-5903-4c23-9120-d4aae0a66db2","publishedId":"UVC2Goks","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-11-04T22:26:35.000Z"},"item":[{"name":"POST Aeropuerto","id":"335478ab-2a08-40c8-ac1d-ca65ff899e90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"aeropuertoId\" : 4,\r\n    \"nombre\" : \"Palomar\",\r\n    \"codigoIATA\" : \"PAL\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://aladas-ap.herokuapp.com/api/aeropuertos","description":"<p>Alta de un aeropuerto.</p>\n","urlObject":{"protocol":"https","path":["api","aeropuertos"],"host":["aladas-ap","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"335478ab-2a08-40c8-ac1d-ca65ff899e90"},{"name":"GET Aeropuertos","id":"90aaeb43-02df-47f8-be84-259b1cfb30c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://aladas-ap.herokuapp.com/api/aeropuertos","description":"<p>Lista los aeropuertos disponibles.</p>\n","urlObject":{"protocol":"https","path":["api","aeropuertos"],"host":["aladas-ap","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"90aaeb43-02df-47f8-be84-259b1cfb30c5"},{"name":"POST Registrar Usuario","id":"5ce78578-e536-4b33-a76e-2e68bc13ef7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\" : \"Agustina Pecuch\",\r\n    \"country\" : 32,\r\n    \"identificationType\" : \"DNI\",\r\n    \"identification\" : 22222222,\r\n    \"birthDate\" : \"1997-10-27\",\r\n    \"email\" : \"aguspecuch@hotmail.com\",\r\n    \"userType\" : \"PASAJERO\",\r\n    \"password\" : \"Agus123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://aladas-ap.herokuapp.com/api/auth/register","description":"<p>Registro nuevo usuario.</p>\n","urlObject":{"protocol":"https","path":["api","auth","register"],"host":["aladas-ap","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ce78578-e536-4b33-a76e-2e68bc13ef7b"},{"name":"POST Login","id":"cbbfeada-ea8c-471a-ac13-5d9f52c16610","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"mariano@gmail.com\",\r\n    \"password\" : \"Mariano123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://aladas-ap.herokuapp.com/api/auth/login","description":"<p>Login usuario.\nEn el response se encuentra el token que se utilizara para acceder al resto de los endpoints.</p>\n","urlObject":{"protocol":"https","path":["api","auth","login"],"host":["aladas-ap","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbbfeada-ea8c-471a-ac13-5d9f52c16610"},{"name":"GET vuelos","id":"49ac1f57-b370-4ae3-86c9-77666818cdff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://aladas-ap.herokuapp.com/api/vuelos","description":"<p>Lista los vuelos disponibles.</p>\n","urlObject":{"protocol":"https","path":["api","vuelos"],"host":["aladas-ap","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"49ac1f57-b370-4ae3-86c9-77666818cdff"},{"name":"PUT Vuelo","id":"0e6b5f51-cdd9-42b3-b3e0-af7d096dd279","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"estado\" : \"DESTINO_ASIGNADO\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://aladas-ap.herokuapp.com/api/vuelos/1/estados","description":"<p>Cambia el estado de un vuelo (lo busca mediante su ID).</p>\n","urlObject":{"protocol":"https","path":["api","vuelos","1","estados"],"host":["aladas-ap","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e6b5f51-cdd9-42b3-b3e0-af7d096dd279"},{"name":"POST Vuelo","id":"152b4aee-7f39-48c5-b0fa-a990f9ec0d86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fecha\" : \"2021-09-08T22:25:30\",\r\n    \"capacidad\" : 100,\r\n    \"aeropuertoOrigen\" : 3,\r\n    \"aeropuertoDestino\" : 1,\r\n    \"precio\" : 60.000,\r\n    \"codigoMoneda\" : \"ARS\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://aladas-ap.herokuapp.com/api/vuelos","description":"<p>Alta de un vuelo nuevo.</p>\n","urlObject":{"protocol":"https","path":["api","vuelos"],"host":["aladas-ap","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"152b4aee-7f39-48c5-b0fa-a990f9ec0d86"}]}