Skip to content

Instantly share code, notes, and snippets.

@dsdenes
Last active March 13, 2018 14:00
Show Gist options
  • Save dsdenes/c26adad9e7cfcaa26a0e4d466fc7a84c to your computer and use it in GitHub Desktop.
Save dsdenes/c26adad9e7cfcaa26a0e4d466fc7a84c to your computer and use it in GitHub Desktop.
swagger: "2.0"
info:
description: $API_DESCRIPTION
version: $API_VERSION
title: $API_TITLE
host: "api.truckin.io"
basePath: "/v3"
schemes:
- "http"
- "https"
paths:
/info/version:
get:
description: API version
produces:
- "text/plain"
responses:
200:
description: "OK"
schema:
type: "string"
example: "1.0.0"
/info/title:
get:
description: API version
produces:
- "text/plain"
responses:
200:
description: "OK"
schema:
type: "string"
example: "TruckIN Omega API"
/info/description:
get:
description: API description
produces:
- "text/plain"
responses:
200:
description: "OK"
schema:
type: "string"
example: "TruckIN Omega API"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment