{"x-generator":"NSwag v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))","openapi":"3.0.0","info":{"title":"API - Current Routes","description":"Digital Libraries services to create API running natively with NRPC and business logic services.","version":"4.10.0.0"},"servers":[{"url":"https://localhost:11216"}],"paths":{"/api/sch/v1/schedules/calendar":{"get":{"tags":["schedules"],"summary":"Gets schedule calendar data for specified markets and date range.","description":"Sample requests:\n\n    GET /api/sch/v1/schedules/calendar?beginDate=2026-05-01T00:00:00Z&endDate=2026-05-31T23:59:59Z\n    \n    GET /api/sch/v1/schedules/calendar?beginDate=2026-05-01T00:00:00Z&endDate=2026-05-07T23:59:59Z&departureStations=SEA&arrivalStations=LAX\n    \n    GET /api/sch/v1/schedules/calendar?beginDate=2026-06-01T06:00:00Z&endDate=2026-06-30T20:00:00Z&departureStations=SEA,PDX&arrivalStations=LAX,SFO&daysOfWeek=Monday,Wednesday,Friday&flightType=NonStop\n    \n    GET /api/sch/v1/schedules/calendar?beginDate=2026-07-01T00:00:00Z&endDate=2026-07-31T23:59:59Z&daysOfWeek=WeekEnd&includeGeneralUseOnly=true\n    \n    GET /api/sch/v1/schedules/calendar?beginDate=2026-08-01T00:00:00Z&endDate=2026-08-31T23:59:59Z&daysOfWeek=WeekDay&departureStations=LAX\n    \n**Days of Week Parameter:**\n- Individual days: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday\n- Combined shortcuts: WeekDay (Mon-Fri), WeekEnd (Sat-Sun), Daily (all days)\n- Multiple days: Use comma-separated values (e.g., daysOfWeek=Monday,Wednesday,Friday)\n\n**Date/Time Parameters:**\n- ISO 8601 format required (e.g., 2026-05-01T06:00:00Z)\n- Time component filters flights by departure time of day\n- Example: T06:00:00Z to T20:00:00Z finds flights departing between 6 AM and 8 PM\n\n**Array Parameters:**\n- departureStations, arrivalStations, and daysOfWeek support comma-separated values\n- Example: departureStations=SEA,PDX,SFO or daysOfWeek=Monday,Friday","operationId":"sch_v1_schedules_calendar_get","parameters":[{"name":"BeginDate","in":"query","description":"The begin date and time of the search range (ISO 8601 format, e.g., 2026-05-01T00:00:00Z).\n            ","schema":{"type":"string","format":"date-time"},"x-position":1},{"name":"EndDate","in":"query","description":"The end date and time of the search range (ISO 8601 format, e.g., 2026-05-01T23:59:59Z).\n            ","schema":{"type":"string","format":"date-time"},"x-position":2},{"name":"DepartureStations","in":"query","style":"form","explode":true,"description":"Optional list of departure station codes.\nMaximum 10 stations. Each station code must be exactly 3 characters.\n            ","schema":{"type":"array","maxItems":10,"nullable":true,"items":{"type":"string","minLength":3,"maxLength":3}},"x-position":3},{"name":"ArrivalStations","in":"query","style":"form","explode":true,"description":"Optional list of arrival station codes.\nMaximum 10 stations. Each station code must be exactly 3 characters.\n            ","schema":{"type":"array","maxItems":5,"nullable":true,"items":{"type":"string","minLength":3,"maxLength":3}},"x-position":4},{"name":"DaysOfWeek","in":"query","style":"form","explode":true,"description":"Days of week filter. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, WeekDay, WeekEnd, Daily.\nDefaults to all days if not specified or empty.\n            ","schema":{"type":"array","maxItems":3,"nullable":true,"items":{"type":"string","minLength":5,"maxLength":9}},"x-position":5},{"name":"FlightType","in":"query","description":"Flight type filter. Defaults to All.\n             \nEnumeration values: 0 = None, 1 = NonStop, 2 = Through, 3 = Direct, 4 = Connect, 7 = All","schema":{"$ref":"#/components/schemas/FlightType"},"x-position":6},{"name":"IncludeGeneralUseOnly","in":"query","description":"Whether to include flights not for general sale. Defaults to false.\n            ","schema":{"type":"boolean"},"x-position":7}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonApiResponseOfMarketCalendarResponse"},"examples":{"Schedule calendar success":{"description":"Successfully retrieved schedule calendar data.","value":"{\"data\":{\"marketCalendars\":[{\"origin\":\"SEA\",\"destination\":\"LAX\",\"marketDetails\":[{\"departureDate\":\"2026-05-01T00:00:00\",\"flightCount\":3,\"earliestScheduledDepartureTime\":\"2026-05-01T06:30:00\",\"latestScheduledDepartureTime\":\"2026-05-01T18:45:00\"},{\"departureDate\":\"2026-05-02T00:00:00\",\"flightCount\":2,\"earliestScheduledDepartureTime\":\"2026-05-02T07:15:00\",\"latestScheduledDepartureTime\":\"2026-05-02T16:30:00\"}]},{\"origin\":\"SEA\",\"destination\":\"SFO\",\"marketDetails\":[{\"departureDate\":\"2026-05-01T00:00:00\",\"flightCount\":4,\"earliestScheduledDepartureTime\":\"2026-05-01T05:45:00\",\"latestScheduledDepartureTime\":\"2026-05-01T20:15:00\"}]}]},\"messages\":null,\"error\":null}"}}}}},"400":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonApiResponseOfObject"},"examples":{"Invalid date range":{"description":"Begin date is after end date.","value":"{\"data\":null,\"messages\":null,\"error\":{\"logId\":\"\",\"type\":\"Validation\",\"message\":\"Begin date must be less than or equal to end date.\",\"statusCode\":400,\"details\":null,\"debug\":{\"debugMessage\":\"Please update the client to forbid the type of request sent per the error message details.\",\"resolution\":\"Validation failed, please request that the Application developer send valid data per the API specifications.\",\"errorCode\":null,\"debugDetails\":null,\"exception\":null,\"warning\":\"This node is not returned in production environments. Set the header Response-Production to mimic production results.\"}}}"},"Past date":{"description":"Begin date is in the past.","value":"{\"data\":null,\"messages\":null,\"error\":{\"logId\":\"\",\"type\":\"Validation\",\"message\":\"Begin date cannot be in the past.\",\"statusCode\":400,\"details\":null,\"debug\":{\"debugMessage\":\"Please update the client to forbid the type of request sent per the error message details.\",\"resolution\":\"Validation failed, please request that the Application developer send valid data per the API specifications.\",\"errorCode\":null,\"debugDetails\":null,\"exception\":null,\"warning\":\"This node is not returned in production environments. Set the header Response-Production to mimic production results.\"}}}"},"Invalid time range":{"description":"Time values are out of valid range.","value":"{\"data\":null,\"messages\":null,\"error\":{\"logId\":\"\",\"type\":\"Validation\",\"message\":\"Begin time must be between 0 and 1439 minutes.\",\"statusCode\":400,\"details\":null,\"debug\":{\"debugMessage\":\"Please update the client to forbid the type of request sent per the error message details.\",\"resolution\":\"Validation failed, please request that the Application developer send valid data per the API specifications.\",\"errorCode\":null,\"debugDetails\":null,\"exception\":null,\"warning\":\"This node is not returned in production environments. Set the header Response-Production to mimic production results.\"}}}"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonApiResponseOfObject"},"examples":{"Unauthorized":{"description":"Unauthorized. Please send an authorization header.","value":"{\"data\":null,\"messages\":null,\"error\":{\"logId\":\"\",\"type\":\"Unauthorized\",\"message\":\"You must log in and send a valid authorization header.\",\"statusCode\":401,\"details\":null,\"debug\":{\"debugMessage\":null,\"resolution\":\"Please have the application developer reference the Authentication section on the developer portal.\",\"errorCode\":null,\"debugDetails\":null,\"exception\":null,\"warning\":\"This node is not returned in production environments. Set the header Response-Production to mimic production results.\"}}}"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonApiResponseOfObject"},"examples":{"Forbidden":{"description":"Forbidden. User does not have permission to access this resource.","value":"{\"data\":null,\"messages\":null,\"error\":{\"logId\":\"\",\"type\":\"Forbidden\",\"message\":\"You are not authorized to have access to this resource.\",\"statusCode\":403,\"details\":null,\"debug\":{\"debugMessage\":null,\"resolution\":\"Please have the application developer reference the Authorization section on the developer portal.\",\"errorCode\":null,\"debugDetails\":null,\"exception\":null,\"warning\":\"This node is not returned in production environments. Set the header Response-Production to mimic production results.\"}}}"}}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonApiResponseOfObject"},"examples":{"Not Found":{"description":"No schedule calendar data found for the specified criteria.","value":"{\"data\":null,\"messages\":null,\"error\":{\"logId\":\"\",\"type\":\"NotFound\",\"message\":\"No schedule data found for the specified date range and markets.\",\"statusCode\":404,\"details\":null,\"debug\":{\"debugMessage\":null,\"resolution\":\"Please have the application developer review. This status code indicates that the url is correct but the requested resource was not found.\",\"errorCode\":null,\"debugDetails\":null,\"exception\":null,\"warning\":\"This node is not returned in production environments. Set the header Response-Production to mimic production results.\"}}}"}}}}},"429":{"description":"TooManyRequests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonApiResponseOfObject"},"examples":{"Too Many Requests":{"description":"Too many requests. Rate limit exceeded.","value":"{\"data\":null,\"messages\":null,\"error\":{\"logId\":\"\",\"type\":\"\",\"message\":\"Too Many Requests\",\"statusCode\":429,\"details\":{\"reason\":\"You have exceeded the allowed number of requests. Please try again later.\"},\"debug\":null}}"}}}}}}}}},"components":{"schemas":{"JsonApiResponseOfMarketCalendarResponse":{"type":"object","description":"The response with any data\n            ","properties":{"messages":{"type":"array","description":"The collection of informational messages.\n            ","maxItems":20,"nullable":true,"items":{"$ref":"#/components/schemas/MessageResponse"}},"error":{"description":"The error thrown.\n            ","nullable":true,"$ref":"#/components/schemas/ApiErrorResponse"},"data":{"description":"The payload data.\n            ","nullable":true,"$ref":"#/components/schemas/MarketCalendarResponse"}}},"MessageResponse":{"type":"object","description":"The exception details related to an API error.\n            ","properties":{"type":{"type":"string","description":"The type of message.\n            ","maxLength":50,"minLength":0},"message":{"type":"string","description":"The  message.\n            ","maxLength":5000,"minLength":0},"details":{"type":"object","description":"The related data.\n            ","nullable":true,"additionalProperties":{}},"debug":{"description":"The information for debug purposes. This information is not returned on production servers.\n            ","nullable":true,"$ref":"#/components/schemas/ApiDebugResponse"}}},"ApiDebugResponse":{"type":"object","description":"The error details meant to be seen by developers only. This will not be returned in production environments.\nInstead it will be available via logs.\n            ","properties":{"debugMessage":{"type":"string","description":"Troubleshooting message for developers.\n            ","maxLength":5000,"minLength":0,"nullable":true},"resolution":{"type":"string","description":"The next steps for the resolution of the error.\n            ","maxLength":5000,"minLength":0,"nullable":true},"errorCode":{"type":"string","description":"Unique error code per error scenario. This is for development and logging purposes.\n            ","maxLength":100,"minLength":0,"nullable":true},"debugDetails":{"type":"object","description":"The data regarding this error\n            ","nullable":true,"additionalProperties":{}},"exception":{"description":"Details of any exception data.\n            ","nullable":true,"$ref":"#/components/schemas/ApiExceptionResponse"},"warning":{"type":"string","description":"Developer warning\n            ","maxLength":100,"minLength":0}}},"ApiExceptionResponse":{"type":"object","description":"The exception details meant to be seen by developers only. This will not be returned in production environments.\n            ","properties":{"exceptionMessage":{"type":"string","description":"The error message from source.\n            ","maxLength":50000,"nullable":true},"stackTrace":{"type":"string","description":"The code stack trace.\n            ","maxLength":50000,"nullable":true},"source":{"type":"string","description":"The exception source.\n            ","maxLength":5000,"nullable":true},"type":{"type":"string","description":"The exception source.\n            ","maxLength":500,"nullable":true},"innerException":{"description":"Details of any inner exception data.\n            ","nullable":true,"$ref":"#/components/schemas/ApiExceptionResponse"}}},"ApiErrorResponse":{"type":"object","description":"The exception details related to an API error.\n            ","properties":{"logId":{"type":"string","description":"The ID able to uniquely identify the request. Useful for debugging purposes to uniquely look up what happened for\nthis\nspecific error.\n            ","maxLength":100},"type":{"type":"string","description":"The error category type.\n            ","maxLength":100},"message":{"type":"string","description":"The error message showing user appropriate details of what went wrong.\n            ","maxLength":5000,"nullable":true},"statusCode":{"type":"integer","description":"The http status code associated with this error.\n            ","format":"int32"},"details":{"type":"object","description":"The data regarding this error.\n            ","nullable":true,"additionalProperties":{}},"debug":{"description":"The developer and exception information for debug purposes. This information is not returned on production servers.\n            ","nullable":true,"$ref":"#/components/schemas/ApiDebugResponse"}}},"MarketCalendarResponse":{"type":"object","description":"Represents the market calendar response containing flight availability by market and date.\n            ","properties":{"marketCalendars":{"type":"array","description":"Collection of market calendars showing flight availability.\n            ","items":{"$ref":"#/components/schemas/MarketCalendarData"}}}},"MarketCalendarData":{"type":"object","description":"Represents calendar data for a specific market (origin-destination pair).\n            ","properties":{"origin":{"type":"string","description":"Departure station code.\n            "},"destination":{"type":"string","description":"Arrival station code.\n            "},"marketDetails":{"type":"array","description":"Collection of market details by date.\n            ","items":{"$ref":"#/components/schemas/MarketDetailData"}}}},"MarketDetailData":{"type":"object","description":"Represents flight details for a specific date within a market.\n            ","properties":{"departureDate":{"type":"string","description":"Departure date.\n            ","format":"date-time"},"flightCount":{"type":"integer","description":"Number of flights available on this date.\n            ","format":"int64"},"earliestScheduledDepartureTime":{"type":"string","description":"Earliest scheduled departure time on this date.\n            ","format":"date-time"},"latestScheduledDepartureTime":{"type":"string","description":"Latest scheduled departure time on this date.\n            ","format":"date-time"}}},"JsonApiResponseOfObject":{"type":"object","description":"The response with any data\n            ","properties":{"messages":{"type":"array","description":"The collection of informational messages.\n            ","maxItems":20,"nullable":true,"items":{"$ref":"#/components/schemas/MessageResponse"}},"error":{"description":"The error thrown.\n            ","nullable":true,"$ref":"#/components/schemas/ApiErrorResponse"},"data":{"description":"The payload data.\n            ","nullable":true}}},"FlightType":{"type":"integer","description":"Flight Type Enumeration\n\n0 = None\n1 = NonStop\n2 = Through\n3 = Direct\n4 = Connect\n7 = All","x-enumNames":["None","NonStop","Through","Direct","Connect","All"],"enum":[0,1,2,3,4,7]}},"securitySchemes":{"JWT":{"type":"http","description":"Paste your JWT token from the token endpoint.","scheme":"bearer","bearerFormat":"jwt"}}},"security":[{"JWT":[]}]}