{"data":{"basePath":"/api/v1","consumes":["application/json"],"info":{"description":"API for the Travel Planning application. Flights now include confirmation_code and support departure_datetime/arrival_datetime. Car rentals support reservation_number, driver_name, phone_number and pickup/dropoff timezones with timezone alias.","title":"Travel Planning API","version":"1.1"},"paths":{"/auth/apple-sign-in":{"post":{"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"apple_user_id":{"type":"string"},"email":{"type":"string"},"full_name":{"type":"string"},"identity_token":{"type":"string"}},"type":"object"}}],"responses":{"200":{"description":"Sign in successful"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"}},"summary":"Sign in with Apple","tags":["Authentication"]}},"/auth/forgot-password":{"post":{"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"email":{"type":"string"}},"type":"object"}}],"responses":{"200":{"description":"Always returns 200. If the address exists, a reset link has been sent"},"400":{"description":"Email is required"}},"summary":"Request password reset link (always 200)","tags":["Authentication"]}},"/auth/login":{"post":{"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"email":{"type":"string"},"password":{"type":"string"}},"type":"object"}}],"responses":{"200":{"description":"Login successful"},"401":{"description":"Unauthorized"}},"summary":"Login and get access token","tags":["Authentication"]}},"/auth/refresh":{"post":{"responses":{"200":{"description":"Token refreshed successfully"},"401":{"description":"Unauthorized"}},"security":[{"Bearer":[]}],"summary":"Refresh access token","tags":["Authentication"]}},"/auth/register":{"post":{"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"email":{"type":"string"},"password":{"type":"string"},"username":{"type":"string"}},"type":"object"}}],"responses":{"201":{"description":"User created successfully"},"400":{"description":"Bad request"}},"summary":"Register a new user","tags":["Authentication"]}},"/auth/reset-password":{"post":{"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"new_password":{"type":"string"},"token":{"type":"string"}},"type":"object"}}],"responses":{"200":{"description":"Password updated"},"400":{"description":"Invalid token or weak password"}},"summary":"Verify token and set new password","tags":["Authentication"]}},"/auth/whoami":{"get":{"responses":{"200":{"description":"Current user info"},"401":{"description":"Unauthorized"}},"security":[{"Bearer":[]}],"summary":"Get current user identity","tags":["Authentication"]}},"/documents/{id}/metadata":{"get":{"parameters":[{"in":"path","name":"id","required":true,"type":"integer"}],"responses":{"200":{"description":"Metadata"},"404":{"description":"Not found"}},"summary":"Get PDF metadata","tags":["Documents"]}},"/documents/{id}/pages/{n}":{"get":{"parameters":[{"in":"path","name":"id","required":true,"type":"integer"},{"in":"path","name":"n","required":true,"type":"integer"},{"in":"query","name":"size","type":"string"}],"responses":{"200":{"description":"URL"},"404":{"description":"Not found"}},"summary":"Get PDF page image","tags":["Documents"]}},"/users/me":{"get":{"responses":{"200":{"description":"User profile retrieved successfully"},"401":{"description":"Unauthorized"}},"security":[{"Bearer":[]}],"summary":"Get current user profile","tags":["Users"]},"put":{"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"preferences":{"type":"object"},"username":{"type":"string"}},"type":"object"}}],"responses":{"200":{"description":"User profile updated successfully"},"401":{"description":"Unauthorized"}},"security":[{"Bearer":[]}],"summary":"Update current user profile","tags":["Users"]}},"/vacations":{"get":{"responses":{"200":{"description":"Vacations retrieved successfully"},"401":{"description":"Unauthorized"}},"security":[{"Bearer":[]}],"summary":"Get all vacations","tags":["Vacations"]},"post":{"consumes":["application/json","multipart/form-data"],"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"confirmation_file":{"description":"Multipart field. Provide this or confirmation_text, but not both.","format":"binary","type":"string"},"confirmation_text":{"description":"Provide this or confirmation_file, but not both.","type":"string"},"destination":{"description":"Optional. When provided without confirmation_text/confirmation_file it is treated as confirmation_text.","type":"string"},"name":{"type":"string"}},"type":"object"}}],"responses":{"201":{"description":"Vacation created successfully"},"400":{"description":"Invalid request"},"401":{"description":"Unauthorized"}},"security":[{"Bearer":[]}],"summary":"Create a new vacation","tags":["Vacations"]}},"/vacations/{vacation_id}/extract_and_save":{"post":{"consumes":["multipart/form-data","application/json"],"parameters":[{"in":"path","name":"vacation_id","required":true,"type":"integer"},{"in":"body","name":"body","required":true,"schema":{"properties":{"confirmation_file":{"description":"Multipart field. Provide this or confirmation_text, but not both.","format":"binary","type":"string"},"confirmation_text":{"description":"Provide this or confirmation_file, but not both.","type":"string"}},"type":"object"}}],"responses":{"200":{"description":"Segments extracted successfully"},"400":{"description":"Invalid request"},"401":{"description":"Unauthorized"},"404":{"description":"Vacation not found"}},"security":[{"Bearer":[]}],"summary":"Extract confirmation details and attach to an existing vacation","tags":["Vacations"]}}},"produces":["application/json"],"schemes":["http","https"],"securityDefinitions":{"Bearer":{"description":"JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\"","in":"header","name":"Authorization","type":"apiKey"}},"swagger":"2.0"},"message":"200 OK","success":true}
