Skip to content

Instantly share code, notes, and snippets.

@TopHatCroat
Created April 15, 2018 14:24
Show Gist options
  • Save TopHatCroat/72fcf026e892ebeecf81fe5d6d371b66 to your computer and use it in GitHub Desktop.
Save TopHatCroat/72fcf026e892ebeecf81fe5d6d371b66 to your computer and use it in GitHub Desktop.
Swagger API response
{
"value": "{\"swagger\":\"2.0\",\"info\":{\"description\":\"Spring Boot bootstrap project\",\"version\":\"0.1\",\"title\":\"Do You Even Code\",\"contact\":{\"name\":\"Antonio Martinovi\u0107\",\"url\":\"www.example.com\",\"email\":\"antmartin2@foi.hr\"},\"license\":{\"name\":\"Unlicense\"}},\"host\":\"localhost:8080\",\"basePath\":\"\/\",\"tags\":[{\"name\":\"user-controller\",\"description\":\"User Controller\"}],\"paths\":{\"\/\":{\"get\":{\"tags\":[\"user-controller\"],\"summary\":\"home\",\"operationId\":\"homeUsingGET\",\"consumes\":[\"*\/*\"],\"produces\":[\"text\/html\"],\"responses\":{\"200\":{\"description\":\"OK\"},\"302\":{\"description\":\"Found\",\"schema\":{\"type\":\"string\"}},\"401\":{\"description\":\"Unauthorized\"},\"403\":{\"description\":\"Forbidden\"},\"404\":{\"description\":\"Not Found\"}}},\"head\":{\"tags\":[\"user-controller\"],\"summary\":\"home\",\"operationId\":\"homeUsingHEAD\",\"consumes\":[\"*\/*\"],\"produces\":[\"text\/html\"],\"responses\":{\"204\":{\"description\":\"No Content\"},\"302\":{\"description\":\"Found\",\"schema\":{\"type\":\"string\"}},\"401\":{\"description\":\"Unauthorized\"},\"403\":{\"description\":\"Forbidden\"}}},\"post\":{\"tags\":[\"user-controller\"],\"summary\":\"home\",\"operationId\":\"homeUsingPOST\",\"consumes\":[\"*\/*\"],\"produces\":[\"text\/html\"],\"responses\":{\"201\":{\"description\":\"Created\"},\"302\":{\"description\":\"Found\",\"schema\":{\"type\":\"string\"}},\"401\":{\"description\":\"Unauthorized\"},\"403\":{\"description\":\"Forbidden\"},\"404\":{\"description\":\"Not Found\"}}},\"put\":{\"tags\":[\"user-controller\"],\"summary\":\"home\",\"operationId\":\"homeUsingPUT\",\"consumes\":[\"*\/*\"],\"produces\":[\"text\/html\"],\"responses\":{\"201\":{\"description\":\"Created\"},\"302\":{\"description\":\"Found\",\"schema\":{\"type\":\"string\"}},\"401\":{\"description\":\"Unauthorized\"},\"403\":{\"description\":\"Forbidden\"},\"404\":{\"description\":\"Not Found\"}}},\"delete\":{\"tags\":[\"user-controller\"],\"summary\":\"home\",\"operationId\":\"homeUsingDELETE\",\"consumes\":[\"*\/*\"],\"produces\":[\"text\/html\"],\"responses\":{\"204\":{\"description\":\"No Content\"},\"302\":{\"description\":\"Found\",\"schema\":{\"type\":\"string\"}},\"401\":{\"description\":\"Unauthorized\"},\"403\":{\"description\":\"Forbidden\"}}},\"options\":{\"tags\":[\"user-controller\"],\"summary\":\"home\",\"operationId\":\"homeUsingOPTIONS\",\"consumes\":[\"*\/*\"],\"produces\":[\"text\/html\"],\"responses\":{\"204\":{\"description\":\"No Content\"},\"302\":{\"description\":\"Found\",\"schema\":{\"type\":\"string\"}},\"401\":{\"description\":\"Unauthorized\"},\"403\":{\"description\":\"Forbidden\"}}},\"patch\":{\"tags\":[\"user-controller\"],\"summary\":\"home\",\"operationId\":\"homeUsingPATCH\",\"consumes\":[\"*\/*\"],\"produces\":[\"text\/html\"],\"responses\":{\"204\":{\"description\":\"No Content\"},\"302\":{\"description\":\"Found\",\"schema\":{\"type\":\"string\"}},\"401\":{\"description\":\"Unauthorized\"},\"403\":{\"description\":\"Forbidden\"}}}}}}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment