Skip to content

Instantly share code, notes, and snippets.

@marcoraddatz marcoraddatz/swagger.json Secret
Created Jul 20, 2015

Embed
What would you like to do?
{
"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
You can’t perform that action at this time.