module Api
Overview
The Api
module specifies the API version and defines generic routes and handlers.
In addition, he set up the Kemal server and the Swagger web API.
This module is the API entry point.
Defined in:
api.crcontrollers/travels_plans_controller.cr
repository/travels_plans_repository.cr
services/travels_plans_service.cr
Constant Summary
-
API_HOST =
ENV["API_HOST"]? || "0.0.0.0"
-
API_PORT =
ENV["API_PORT"]? || "3000"
-
API_SWAGGER_HOST =
ENV["API_SWAGGER_HOST"]? || "localhost"
-
API_SWAGGER_PORT =
ENV["API_SWAGGER_PORT"]? || "3000"
-
VERSION =
"1.0.0"