mirror of
https://github.com/furyhawk/api_gateway.git
synced 2026-07-21 02:06:50 +00:00
76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
settings:
|
|
title: LTA DataMall API Gateway
|
|
version: 0.2.1
|
|
description: Configurable gateway for OpenAPI-based upstream services
|
|
gateway_port: 8067
|
|
external_openapi_file: openapi_json/lta_datamall_openapi_v0-1-1.json
|
|
cache_enabled: true
|
|
cache_ttl_seconds: 30
|
|
cache_max_entries: 500
|
|
require_api_key: false
|
|
api_keys_file: config/api_keys.json
|
|
admin_api_key_env: ADMIN_API_KEY
|
|
|
|
upstreams:
|
|
lta_datamall:
|
|
base_url: http://host.containers.internal/
|
|
port: 8068
|
|
timeout_seconds: 20
|
|
|
|
routes:
|
|
- path: /api/v1/bus-arrival
|
|
methods: [GET]
|
|
upstream: lta_datamall
|
|
upstream_path: /api/v1/bus-arrival
|
|
summary: Bus arrival passthrough
|
|
tags: [Bus]
|
|
operation_id: gateway_bus_arrival
|
|
|
|
- path: /api/v1/bus-services
|
|
methods: [GET]
|
|
upstream: lta_datamall
|
|
upstream_path: /api/v1/bus-services
|
|
summary: Bus services passthrough
|
|
tags: [Bus]
|
|
operation_id: gateway_bus_services
|
|
|
|
- path: /api/v1/bus-routes
|
|
methods: [GET]
|
|
upstream: lta_datamall
|
|
upstream_path: /api/v1/bus-routes
|
|
summary: Bus routes passthrough
|
|
tags: [Bus]
|
|
operation_id: gateway_bus_routes
|
|
|
|
- path: /api/v1/bus-stops
|
|
methods: [GET]
|
|
upstream: lta_datamall
|
|
upstream_path: /api/v1/bus-stops
|
|
summary: Bus stops passthrough
|
|
tags: [Bus]
|
|
operation_id: gateway_bus_stops
|
|
|
|
- path: /api/v1/passenger-volume/bus
|
|
methods: [GET]
|
|
upstream: lta_datamall
|
|
upstream_path: /api/v1/passenger-volume/bus
|
|
summary: Bus passenger volume passthrough
|
|
tags: [Passenger Volume]
|
|
operation_id: gateway_passenger_volume_bus
|
|
|
|
- path: /api/v1/passenger-volume/od-bus
|
|
methods: [GET]
|
|
upstream: lta_datamall
|
|
upstream_path: /api/v1/passenger-volume/od-bus
|
|
summary: Origin-destination bus passenger volume passthrough
|
|
tags: [Passenger Volume]
|
|
operation_id: gateway_passenger_volume_od_bus
|
|
|
|
- path: /api/v1/planned-bus-routes
|
|
methods: [GET]
|
|
upstream: lta_datamall
|
|
upstream_path: /api/v1/planned-bus-routes
|
|
summary: Planned bus routes passthrough
|
|
tags: [Bus]
|
|
operation_id: gateway_planned_bus_routes
|