metadata.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoServer Metadata Community Module
  6. description: Customized Metadata Bulk Operations.
  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. /metadata/import:
  15. post:
  16. summary: Bulk import from geonetwork and/or template linking.
  17. description:
  18. Will perform a bulk import and/or template linking for every layer specified in CSV file.
  19. CSV file must be of form "prefix:layername; [geonetwork-id] [; template-1 [;template-2 ... ] ]"
  20. Existing template links will be removed first.
  21. tags:
  22. - "Metadata"
  23. consumes: text/csv
  24. parameters:
  25. - name: geonetwork
  26. required: false
  27. description:
  28. Name of geonetwork (as configured, see general documentation).
  29. type: string
  30. responses:
  31. 200:
  32. description: OK
  33. 401:
  34. description: Unauthorized
  35. /metadata/nativeToCustom:
  36. get:
  37. summary: Perform native-to-custom mapping for all layers.
  38. description:
  39. With respect to your custom-to-native mapping file (see general documentation), this operation will perform an
  40. opposite synchronization from native fields to custom fields.
  41. tags:
  42. - "Metadata"
  43. parameters:
  44. - name: indexes
  45. required: false
  46. description:
  47. Comma-separated list of positive integers. Will only perform the mapping for a selection of mappings
  48. (indexed, following the order of mapping file).
  49. type: string
  50. responses:
  51. 200:
  52. description: OK
  53. 401:
  54. description: Unauthorized
  55. post:
  56. summary: Perform native-to-custom mapping for selected layers.
  57. description:
  58. With respect to your custom-to-native mapping file (see metadata module documentation), this operation will perform an
  59. opposite synchronization from native fields to custom fields. Your body must be a list layers, where each row is of
  60. the form "prefix:layername".
  61. tags:
  62. - "Metadata"
  63. consumes: text/csv
  64. parameters:
  65. - name: indexes
  66. required: false
  67. description:
  68. Comma-separated list of positive integers. Will only perform the mapping for a selection of mappings
  69. (indexed, following the order of mapping file).
  70. type: string
  71. responses:
  72. 200:
  73. description: OK
  74. 401:
  75. description: Unauthorized
  76. /metadata:
  77. delete:
  78. summary: Delete all custom metadata
  79. description: Remove ALL custom metadata from ALL layers. All template links are removed. Used for testing and debugging.
  80. tags:
  81. - "Metadata"
  82. parameters:
  83. - name: iAmSure
  84. required: false
  85. description: Safety flag, must be true or request will fail.
  86. type: boolean
  87. - name: templatesToo
  88. required: false
  89. description: If this flag is true, all metadata templates will be removed as well.
  90. type: boolean
  91. responses:
  92. 200:
  93. description: OK
  94. 400:
  95. description: You must be sure (if safety flag not set)
  96. 401:
  97. description: Unauthorized
  98. /metadata/fix:
  99. get:
  100. summary: Fix all custom metadata
  101. description: Calls routine operations that may fix corrupted custom metadata in all layers. Used for testing and debugging.
  102. tags:
  103. - "Metadata"
  104. responses:
  105. 200:
  106. description: OK
  107. 401:
  108. description: Unauthorized