Skip to content

Instantly share code, notes, and snippets.

@marcoraddatz
Created July 20, 2015 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcoraddatz/e1bae006bf635dd2b533 to your computer and use it in GitHub Desktop.
Save marcoraddatz/e1bae006bf635dd2b533 to your computer and use it in GitHub Desktop.
{
"swagger": "2.0",
"info": {
"title": "Sample API",
"contact": {
"name": "Marco Raddatz",
"url": "https://www.marcoraddatz.com"
},
"version": "1.0"
},
"host": "laravel.localhost",
"basePath": "",
"schemes": [
"http"
],
"paths": {
"/api/dashboard": {
"get": {
"tags": [
"dashboard"
],
"description": "Returns dashboard overview.",
"operationId": "api.dashboard.index",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Dashboard overview."
},
"401": {
"description": "Unauthorized action."
}
}
}
}
},
"definitions": {
"Error": {
"required": [
"code",
"message"
],
"properties": {
"code": {
"description": "Class ApiController",
"type": "integer",
"format": "int32"
},
"message": {
"description": "Class ApiController",
"type": "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment