fonts.yaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoServer Fonts
  6. description: A font is a set of characters that can be used in a style for displaying labels.
  7. contact:
  8. name: GeoServer
  9. email: 'geoserver-users@osgeo.org'
  10. url: 'https://geoserver.org/comm/'
  11. host: localhost:8080
  12. basePath: /geoserver/rest
  13. paths:
  14. /fonts:
  15. get:
  16. operationId: getFonts
  17. tags:
  18. - "Fonts"
  19. summary: Get a list of fonts
  20. description: Displays a list of all fonts on the server. You must use the "Accept:" header to specify format or append an extension to the endpoint (example "/fonts.xml" for XML)
  21. produces:
  22. - application/json
  23. - application/xml
  24. responses:
  25. 200:
  26. description: OK
  27. schema:
  28. $ref: "#/definitions/FontList"
  29. examples:
  30. application/json: |
  31. {"fonts":["Calibri Light Italic","Microsoft PhagsPa Bold","Lucida Sans Typewriter Oblique","ChaparralPro-Regular","Californian FB Italic"]}
  32. application/xml: |
  33. <root>
  34. <fonts>
  35. <entry>Calibri Light Italic</entry>
  36. <entry>Microsoft PhagsPa Bold</entry>
  37. <entry>Lucida Sans Typewriter Oblique</entry>
  38. <entry>ChaparralPro-Regular</entry>
  39. <entry>Californian FB Italic</entry>
  40. </fonts>
  41. </root>
  42. 401:
  43. description: Unauthorized
  44. post:
  45. operationId: postFonts
  46. tags:
  47. - "Fonts"
  48. description: Invalid. Fonts cannot be added through the REST API.
  49. responses:
  50. 401:
  51. description: Unauthorized
  52. 405:
  53. description: Method Not Allowed
  54. put:
  55. operationId: putFonts
  56. tags:
  57. - "Fonts"
  58. description: Invalid. Fonts cannot be updated through the REST API.
  59. responses:
  60. 401:
  61. description: Unauthorized
  62. 405:
  63. description: Method Not Allowed
  64. delete:
  65. operationId: deleteFonts
  66. tags:
  67. - "Fonts"
  68. description: Invalid. Fonts cannot be deleted through the REST API.
  69. responses:
  70. 401:
  71. description: Unauthorized
  72. 405:
  73. description: Method Not Allowed
  74. definitions:
  75. FontListItem:
  76. type: object
  77. properties:
  78. entry:
  79. type: string
  80. description: Name of font
  81. FontList:
  82. type: array
  83. items:
  84. $ref: '#/definitions/FontListItem'