get.json 834 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "operationId": "getSetting",
  3. "summary": "Get a setting",
  4. "tags": ["Settings"],
  5. "security": [
  6. {
  7. "BearerAuth": ["settings"]
  8. }
  9. ],
  10. "parameters": [
  11. {
  12. "in": "path",
  13. "name": "settingID",
  14. "schema": {
  15. "type": "string",
  16. "minLength": 1
  17. },
  18. "required": true,
  19. "description": "Setting ID",
  20. "example": "default-site"
  21. }
  22. ],
  23. "responses": {
  24. "200": {
  25. "description": "200 response",
  26. "content": {
  27. "application/json": {
  28. "examples": {
  29. "default": {
  30. "value": {
  31. "id": "default-site",
  32. "name": "Default Site",
  33. "description": "What to show when Nginx is hit with an unknown Host",
  34. "value": "congratulations",
  35. "meta": {}
  36. }
  37. }
  38. },
  39. "schema": {
  40. "$ref": "../../../components/setting-object.json"
  41. }
  42. }
  43. }
  44. }
  45. }
  46. }