importer.yaml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoServer Importer Extension - Main
  6. description: The Importer extension gives a GeoServer administrator an alternate, more-streamlined method for uploading and configuring new layers. The main endpoint manages individual import jobs. The importer extension is an optional install and may not be available on all deployments of GeoServer
  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. /imports:
  15. get:
  16. operationId: getImports
  17. tags:
  18. - "Importer"
  19. summary: Get a list of all imports
  20. produces:
  21. - application/json
  22. - text/html
  23. parameters:
  24. - $ref: "#/parameters/ExpandParameterNone"
  25. responses:
  26. 200:
  27. description: OK
  28. schema:
  29. $ref: "#/definitions/Contexts"
  30. examples:
  31. application/json: |
  32. {
  33. "imports": [{
  34. "id": 0,
  35. "state": "COMPLETE",
  36. "href": "http://localhost:8080/geoserver/rest/imports/0"
  37. }, {
  38. "id": 1,
  39. "state": "PENDING",
  40. "href": "http://localhost:8080/geoserver/rest/imports/1"
  41. }]
  42. }
  43. post:
  44. operationId: postImports
  45. tags:
  46. - "Importer"
  47. summary: Create a new import
  48. description: Creates a new import. If the exec parameter is true, that import is immediately executed.
  49. produces:
  50. - application/json
  51. - text/html
  52. parameters:
  53. - $ref: "#/parameters/AsyncParameter"
  54. - $ref: "#/parameters/ExecParameter"
  55. - $ref: "#/parameters/ExpandParameter"
  56. - $ref: "#/parameters/ContextParameter"
  57. responses:
  58. 201:
  59. description: Created
  60. schema:
  61. $ref: "#/definitions/Context"
  62. headers:
  63. Location:
  64. description: href to the newly created import
  65. type: string
  66. delete:
  67. operationId: deleteImports
  68. tags:
  69. - "Importer"
  70. summary: Delete all imports
  71. description: Deletes all imports that are not in the COMPLETE state.
  72. responses:
  73. 204:
  74. description: No Content.
  75. /imports/{importId}:
  76. get:
  77. operationId: getImport
  78. tags:
  79. - "Importer"
  80. summary: Retrieve import by id
  81. produces:
  82. - text/html
  83. - application/json
  84. - application/xml
  85. parameters:
  86. - name: importId
  87. in: path
  88. description: The ID of the import
  89. required: true
  90. type: string
  91. - $ref: "#/parameters/ExpandParameter"
  92. responses:
  93. 200:
  94. description: OK
  95. schema:
  96. $ref: "#/definitions/Context"
  97. post:
  98. operationId: postImport
  99. tags:
  100. - "Importer"
  101. summary: Create a new import, or execute an existing import
  102. description: If an import with the id {importId} exists and is not in the INIT state, it is executed. If an import with that id does not exist, a new import is created with that id. If the exec parameter is true, this new import is immediately executed.
  103. produces:
  104. - application/json
  105. - text/html
  106. parameters:
  107. - $ref: "#/parameters/AsyncParameter"
  108. - $ref: "#/parameters/ExecParameter"
  109. - $ref: "#/parameters/ExpandParameter"
  110. - $ref: "#/parameters/ContextParameter"
  111. responses:
  112. 201:
  113. description: Created. Returned if the import was created.
  114. schema:
  115. $ref: "#/definitions/Context"
  116. 204:
  117. description: No Content. Returned if the import already existed and was executed.
  118. 412:
  119. description: Precondition Failed. Returned if the import already existed and was in the INIT state.
  120. put:
  121. operationId: putImport
  122. tags:
  123. - "Importer"
  124. summary: Tries to create a new import with the provided id.
  125. description: Creates a new import with the next unclaimed id >= {importId}. If the exec parameter is true, that import is immediately executed.
  126. consumes:
  127. - application/json
  128. - text/json
  129. produces:
  130. - application/json
  131. - text/html
  132. parameters:
  133. - $ref: "#/parameters/AsyncParameter"
  134. - $ref: "#/parameters/ExecParameter"
  135. - $ref: "#/parameters/ExpandParameter"
  136. - $ref: "#/parameters/ContextParameter"
  137. responses:
  138. 201:
  139. description: Created
  140. schema:
  141. $ref: "#/definitions/Context"
  142. headers:
  143. Location:
  144. description: href to the newly created import
  145. type: string
  146. delete:
  147. operationId: deleteImport
  148. tags:
  149. - "Importer"
  150. summary: Delete an import
  151. description: Deletes the import with id {importId}, as long as it is not in the COMPLETE state.
  152. responses:
  153. 204:
  154. description: No Content.
  155. parameters:
  156. AsyncParameter:
  157. name: async
  158. description: Run the import asyncronously.
  159. default: false
  160. in: query
  161. type: boolean
  162. required: false
  163. ExecParameter:
  164. name: exec
  165. description: Run the import when it is created.
  166. default: false
  167. in: query
  168. type: boolean
  169. required: false
  170. #This parameter is handled at the converter level, and applies to all endpoints which return content. Default is 1 (self), unless otherwise specified in the controller method.
  171. ExpandParameter:
  172. name: expand
  173. type: string
  174. in: query
  175. description: 'What level to expand the response object to. Can be "self" (expand only the response object and its immediate children), "all" (expand all children), "none" (don''t include any children), or a nonnegative integer, indicating the depth of children to expand to.'
  176. default: self
  177. required: false
  178. ExpandParameterNone:
  179. name: expand
  180. type: string
  181. in: query
  182. description: 'What level to expand the response object to. Can be "self" (expand only the response object and its immediate children), "all" (expand all children), "none" (don''t include any children), or a nonnegative integer, indicating the depth of children to expand to.'
  183. default: none
  184. required: false
  185. ContextParameter:
  186. name: importBody
  187. description: The import context to create.
  188. in: body
  189. required: true
  190. schema:
  191. $ref: "#/definitions/Context"
  192. definitions:
  193. Contexts:
  194. title: imports
  195. type: array
  196. description: List of import contexts.
  197. items:
  198. $ref: "#/definitions/Context"
  199. Context:
  200. title: context
  201. type: object
  202. description: An import context
  203. properties:
  204. id:
  205. type: string
  206. description: The import id
  207. href:
  208. type: string
  209. description: URL to the import context endpoint
  210. state:
  211. type: string
  212. description: State of the import.
  213. enum:
  214. - INIT
  215. - INIT_ERROR
  216. - PENDING
  217. - RUNNING
  218. - COMPLETE
  219. message:
  220. type: string
  221. description: The current context message, if any
  222. archive:
  223. type: boolean
  224. description: Flag to control whether imported files (indirect) should be archived after import
  225. targetWorkspace:
  226. type: string
  227. description: Target workspace of the import, if any.
  228. targetStore:
  229. $ref: "#/definitions/Store"
  230. data:
  231. $ref: "#/definitions/Data"
  232. transforms:
  233. $ref: "#/definitions/Transforms"
  234. tasks:
  235. $ref: "#/definitions/Tasks"
  236. Tasks:
  237. title: tasks
  238. description: A list of tasks
  239. type: array
  240. items:
  241. $ref: "#/definitions/Task"
  242. Task:
  243. title: task
  244. type: object
  245. description: An import task
  246. properties:
  247. id:
  248. type: string
  249. description: The task id
  250. href:
  251. type: string
  252. description: URL to the task endpoint
  253. state:
  254. type: string
  255. description: State of the task.
  256. enum:
  257. - PENDING
  258. - READY
  259. - RUNNING
  260. - NO_CRS
  261. - NO_BOUNDS
  262. - NO_FORMAT
  263. - BAD_FORMAT
  264. - ERROR
  265. - CANCELED
  266. - COMPLETE
  267. updateMode:
  268. type: string
  269. description: Update mode of the task.
  270. enum:
  271. - CREATE
  272. - REPLACE
  273. - APPEND
  274. - UPDATE
  275. data:
  276. $ref: "#/definitions/Data"
  277. target:
  278. $ref: "#/definitions/Store"
  279. progress:
  280. type: string
  281. description: URL to the progress endpoint for this task
  282. layer:
  283. $ref: "#/definitions/Layer"
  284. errorMessage:
  285. type: string
  286. description: Any error messages for the task, concatenated.
  287. transformChain:
  288. $ref: "#/definitions/TransformChain"
  289. messages:
  290. $ref: "#/definitions/Messages"
  291. Store:
  292. title: store
  293. type: object
  294. description: A store
  295. properties:
  296. href:
  297. type: string
  298. description: URL to the task target endpoint
  299. store:
  300. type: object
  301. description: JSON representation of the store
  302. # Store:
  303. # oneOf:
  304. # - $ref: "#/definitions/DataStore"
  305. # - $ref: "#/definitions/CoverageStore"
  306. DataStore:
  307. title: Store
  308. type: object
  309. description: A vector store
  310. properties:
  311. href:
  312. type: string
  313. description: URL to the task target endpoint
  314. datastore:
  315. title: datastore
  316. type: object
  317. properties:
  318. name:
  319. type: string
  320. description: Name of data store
  321. link:
  322. type: string
  323. description: URL to data store definition
  324. CoverageStore:
  325. title: Store
  326. type: object
  327. description: A raster store
  328. properties:
  329. href:
  330. type: string
  331. description: URL to the task target endpoint
  332. coverageStore:
  333. type: object
  334. required: [ name, type ]
  335. example: |
  336. <coverageStore>
  337. <name>arcGridSample</name>
  338. <description>Sample ASCII GRID coverage of Global rainfall.</description>
  339. <type>ArcGrid</type>
  340. <enabled>true</enabled>
  341. <workspace>
  342. <name>nurc</name>
  343. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/nurc.xml" type="application/xml"/>
  344. </workspace>
  345. <__default>false</__default>
  346. <url>file:coverages/arc_sample/precip30min.asc</url>
  347. <coverages>
  348. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/nurc/coveragestores/arcGridSample/coverages.xml" type="application/xml"/>
  349. </coverages>
  350. </coverageStore>
  351. properties:
  352. name:
  353. type: string
  354. description: Name of the coverage store
  355. description:
  356. type: string
  357. description: Description of the coverage store
  358. type:
  359. type: string
  360. description: Type of coverage store
  361. enabled:
  362. type: boolean
  363. description: Whether the store is enabled, or not
  364. workspace:
  365. type: object
  366. description: The workspace containing the store
  367. required: [name]
  368. properties:
  369. name:
  370. type: string
  371. description: Name of the workspace
  372. link:
  373. type: string
  374. description: A link to the workspace representation
  375. __default__:
  376. type: boolean
  377. description: Whether the store is the default store of the workspace
  378. url:
  379. type: string
  380. description: Location of the raster data source (often, but not necessarily, a file). Can be relative to the data directory.
  381. coverages:
  382. type: object
  383. properties:
  384. link:
  385. type: string
  386. description: A link to the list of coverages contained in this store
  387. Layer:
  388. title: layer
  389. type: object
  390. description: A layer
  391. properties:
  392. name:
  393. type: string
  394. description: The name of the layer
  395. href:
  396. type: string
  397. description: "URL to the importer layer endpoint"
  398. title:
  399. type: string
  400. description: The layer title
  401. abstract:
  402. type: string
  403. description: The layer abstract
  404. description:
  405. type: string
  406. description: The layer description
  407. originalName:
  408. type: string
  409. description: The original name of the layer. This may be different from the name if this name already exists in geoserver.
  410. nativeName:
  411. type: string
  412. description: The name of the underlying resource
  413. srs:
  414. type: string
  415. description: The SRS of the layer
  416. bbox:
  417. $ref: "#/definitions/Bbox"
  418. attributes:
  419. $ref: "#/definitions/FeatureType"
  420. style:
  421. $ref: "#/definitions/Style"
  422. FeatureType:
  423. title: featureType
  424. type: array
  425. description: Feature type attributes
  426. items:
  427. type: object
  428. description: A feature type attribute.
  429. properties:
  430. name:
  431. type: string
  432. description: The name of the attribute
  433. binding:
  434. type: string
  435. description: The java class representing the type of the attribute
  436. Style:
  437. title: style
  438. type: object
  439. description: A layer style
  440. properties:
  441. name:
  442. type: string
  443. description: Name of the style
  444. href:
  445. type: string
  446. description: "URL to the importer layer style endpoint"
  447. format:
  448. type: string
  449. description: Format of style
  450. languageVersion:
  451. type: object
  452. properties:
  453. version:
  454. type: string
  455. description: Version of style format
  456. filename:
  457. type: string
  458. description: File name of the style
  459. TransformChain:
  460. title: transformChain
  461. type: object
  462. description: A chain of tranform operations to apply during the import process
  463. properties:
  464. type:
  465. type: string
  466. description: 'The type of transforms in the chain. One of "vector" or "raster"'
  467. transforms:
  468. $ref: "#/definitions/Transforms"
  469. Transforms:
  470. title: transforms
  471. type: array
  472. description: A list of transforms
  473. items:
  474. $ref: "#/definitions/Transform"
  475. Transform:
  476. title: transform
  477. type: object
  478. description: A data transform applied to the import data.
  479. properties:
  480. type:
  481. type: string
  482. description: The name of the transform
  483. href:
  484. type: string
  485. description: URL to the transform endpoint
  486. # Transform:
  487. # oneOf:
  488. # - $ref: "#/definitions/DataFormatTransform"
  489. # - $ref: "#/definitions/IntegerFieldToDateTransform"
  490. # - $ref: "#/definitions/CreateIndexTransform"
  491. # - $ref: "#/definitions/AttributeRemapTransform"
  492. # - $ref: "#/definitions/AttributesToPointGeometryTransform"
  493. #. - $ref: "#/definitions/ReprojectTransform"
  494. # - $ref: "#/definitions/GdalTranslateTransform"
  495. # - $ref: "#/definitions/GdalWarpTransform"
  496. # - $ref: "#/definitions/GdalAddoTransform"
  497. # - $ref: "#/definitions/PostScriptTransform"
  498. DataFormatTransform:
  499. title: DataFormatTransform
  500. type: object
  501. description: A data transform that converts a non date attribute in a date attribute.
  502. properties:
  503. type:
  504. type: string
  505. description: '"DataFormatTransform"'
  506. href:
  507. type: string
  508. description: URL to the transform endpoint
  509. field:
  510. type: string
  511. description: The field to apply the transform to
  512. format:
  513. type: string
  514. description: "A date parsing pattern, setup using the Java SimpleDateFormat syntax. In case it's missing, a number of built-in formats will be tried instead (short and full ISO date formats, dates without any separators)."
  515. IntegerFieldToDateTransform:
  516. title: IntegerFieldToDateTransform
  517. type: object
  518. description: A data transform that allows a string or number field to be used as a year Date. The number is interpreted as an Integer.
  519. properties:
  520. type:
  521. type: string
  522. description: '"IntegerFieldToDateTransform"'
  523. href:
  524. type: string
  525. description: URL to the transform endpoint
  526. field:
  527. type: string
  528. description: The field to apply the transform to
  529. CreateIndexTransform:
  530. title: CreateIndexTransform
  531. type: object
  532. description: A data transform that creates an index in the data (assuming the import data is a database).
  533. properties:
  534. type:
  535. type: string
  536. description: '"CreateIndexTransform"'
  537. href:
  538. type: string
  539. description: URL to the transform endpoint
  540. field:
  541. type: string
  542. description: The field to create the index for
  543. AttributeRemapTransform:
  544. title: AttributeRemapTransform
  545. type: object
  546. description: A data transform that maps an attribute from one type to another.
  547. properties:
  548. type:
  549. type: string
  550. description: '"AttributeRemapTransform"'
  551. href:
  552. type: string
  553. description: URL to the transform endpoint
  554. field:
  555. type: string
  556. description: The field to remap.
  557. target:
  558. type: string
  559. description: The type to map the attribute to.
  560. AttributesToPointGeometryTransform:
  561. title: AttributesToPointGeometryTransform
  562. type: object
  563. description: A data transform that maps two numerical attributes to a point geometry.
  564. properties:
  565. type:
  566. type: string
  567. description: '"AttributesToPointGeometryTransform"'
  568. href:
  569. type: string
  570. description: URL to the transform endpoint
  571. latField:
  572. type: string
  573. description: The field used for the lattitude
  574. lonField:
  575. type: string
  576. description: The field used for the longitude
  577. ReprojectTransform:
  578. title: ReprojectTransform
  579. type: object
  580. description: A data transform that reprojects the geometry from one CRS to another.
  581. properties:
  582. type:
  583. type: string
  584. description: '"ReprojectTransform"'
  585. href:
  586. type: string
  587. description: URL to the transform endpoint
  588. source:
  589. type: string
  590. description: The CRS to reproject from
  591. target:
  592. type: string
  593. description: The CRS to reproject to
  594. GdalTranslateTransform:
  595. title: GdalTranslateTransform
  596. type: object
  597. description: A data transform that runs gdal_translate on a input raster file.
  598. properties:
  599. type:
  600. type: string
  601. description: '"GdalTranslateTransform"'
  602. href:
  603. type: string
  604. description: URL to the transform endpoint
  605. options:
  606. type: array
  607. description: Array of options that are passed to gdal when running the transform
  608. items:
  609. type: string
  610. description: An option passed to gdal
  611. GdalWarpTransform:
  612. title: GdalWarpTransform
  613. type: object
  614. description: A data transform that runs gdalwarp on a input raster file.
  615. properties:
  616. type:
  617. type: string
  618. description: '"GdalWarpTransform"'
  619. href:
  620. type: string
  621. description: URL to the transform endpoint
  622. options:
  623. type: array
  624. description: Array of options that are passed to gdal when running the transform
  625. items:
  626. type: string
  627. description: An option passed to gdal
  628. GdalAddoTransform:
  629. title: GdalAddoTransform
  630. type: object
  631. description: A data transform that runs gdaladdo on a input raster file.
  632. properties:
  633. type:
  634. type: string
  635. description: '"GdalAddoTransform"'
  636. href:
  637. type: string
  638. description: URL to the transform endpoint
  639. options:
  640. type: array
  641. description: Array of options that are passed to gdal when running the transform
  642. items:
  643. type: string
  644. description: An option passed to gdal
  645. levels:
  646. type: array
  647. description: The levels
  648. items:
  649. type: integer
  650. description: A level
  651. PostScriptTransform:
  652. title: PostScriptTransform
  653. type: object
  654. description: Invokes a script found in $GEOSERVER_DATA_DIR/importer/scripts
  655. properties:
  656. type:
  657. type: string
  658. description: '"PostScriptTransform"'
  659. href:
  660. type: string
  661. description: URL to the transform endpoint
  662. name:
  663. type: string
  664. description: The name of the script to be invoked
  665. options:
  666. type: array
  667. description: Array of options that are passed to the script when running the transform
  668. items:
  669. type: string
  670. description: An option passed to the script
  671. Bbox:
  672. title: Bbox
  673. type: object
  674. description: A spatially referenced bounding box.
  675. properties:
  676. minx:
  677. type: string
  678. description: The minimum x value
  679. miny:
  680. type: string
  681. description: The minimum y value
  682. maxx:
  683. type: string
  684. description: The maximum x value
  685. maxy:
  686. type: string
  687. description: The maximum y value
  688. crs:
  689. type: string
  690. description: The WKT representation of the CRS.
  691. Data:
  692. title: data
  693. type: object
  694. description: A data representation. Paramaters vary depending on the type.
  695. properties:
  696. type:
  697. type: string
  698. description: The type of the data
  699. enum:
  700. - remote
  701. - file
  702. - directory
  703. - mosaic
  704. - database
  705. - table
  706. # Data:
  707. # oneOf:
  708. # - $ref: "#/definitions/Directory"
  709. # - $ref: "#/definitions/File"
  710. # - $ref: "#/definitions/Database"
  711. # - $ref: "#/definitions/Table"
  712. # - $ref: "#/definitions/Remote"
  713. Remote:
  714. title: remote
  715. type: object
  716. description: An import data object representing remote data.
  717. properties:
  718. type:
  719. type: string
  720. description: '"remote"'
  721. location:
  722. type: string
  723. description: The location from which to fetch the data.
  724. username:
  725. type: string
  726. description: Username required to access the data (optional).
  727. password:
  728. type: string
  729. description: Password required to access the data (optional).
  730. domain:
  731. type: string
  732. description: domain of the data.
  733. Files:
  734. title: files
  735. type: array
  736. description: List of file descriptors
  737. items:
  738. $ref: "#/definitions/FileContents"
  739. File:
  740. title: file
  741. type: object
  742. description: An import data object representing a spatial file or granule
  743. properties:
  744. type:
  745. type: string
  746. description: '"file"'
  747. format:
  748. type: string
  749. description: Format of the file
  750. href:
  751. type: string
  752. description: URL to the file endpoint
  753. location:
  754. type: string
  755. description: Absolute system path to the file
  756. charset:
  757. type: string
  758. description: The charset encoding of the data
  759. file:
  760. type: string
  761. description: Name of the file
  762. prj:
  763. type: string
  764. description: Name of the .prj file, if applicable
  765. other:
  766. type: array
  767. description: List of other files that comprise this spatial file.
  768. items:
  769. type: string
  770. description: Name of the file
  771. message:
  772. $ref: "#/definitions/Message"
  773. FileContents:
  774. title: filecontents
  775. type: object
  776. description: Description of a spatial file or granule
  777. properties:
  778. file:
  779. type: string
  780. description: Name of the file
  781. href:
  782. type: string
  783. description: URL to the file endpoint
  784. prj:
  785. type: string
  786. description: Name of the .prj file, if applicable
  787. other:
  788. type: array
  789. description: List of other files that comprise this spatial file.
  790. items:
  791. type: string
  792. description: Name of the file
  793. Directory:
  794. title: directory
  795. type: object
  796. description: An import data object representing a directory of spatial files or an image mosaic
  797. properties:
  798. type:
  799. type: string
  800. description: '"directory" or "mosaic"'
  801. location:
  802. type: string
  803. description: Absolute system path to the directory
  804. href:
  805. type: string
  806. description: URL to the directory endpoint
  807. charset:
  808. type: string
  809. description: Charset encoding of the data
  810. files:
  811. $ref: "#/definitions/Files"
  812. Database:
  813. title: database
  814. type: object
  815. description: An import data object representing a database
  816. properties:
  817. type:
  818. type: string
  819. description: '"database"'
  820. format:
  821. type: string
  822. href:
  823. type: string
  824. description: URL to the database endpoint
  825. properties:
  826. type: object
  827. description: Database connection parameters. Actual paramaters vary depending on the type of database.
  828. tables:
  829. type: array
  830. items:
  831. $ref: "#/definitions/Table"
  832. Table:
  833. title: table
  834. type: object
  835. description: An import data object representing a a database table
  836. properties:
  837. type:
  838. type: string
  839. description: '"table"'
  840. name:
  841. type: string
  842. format:
  843. type: string
  844. href:
  845. type: string
  846. description: URL to the table endpoint
  847. Message:
  848. title: message
  849. type: string
  850. description: A message about the import data.
  851. Messages:
  852. title: messages
  853. description: A list of log messages
  854. type: array
  855. items:
  856. title: messages
  857. type: object
  858. properties:
  859. level:
  860. type: string
  861. description: Level of the log message.
  862. messsage:
  863. type: string
  864. description: The log message