REST API Reference

REST API Reference

Metadata/Connection

Metadata/Connection

The POST metadata/connection request imports metadata from a connection into a project in Test Data Manager.

Resource URL

/tdm/v1/projects/{projectId}/metadata/connection

HTTP Request

POST http(s)://
<host>
:
<port>
/api/public/tdm/v1/projects/{projectId}/metadata/connection

Request Header

The request header includes the following headers:
Header
Description
accept
Use the following value:
application/json
Authorization
Required. Use the following value:
Basic <user name>

Request Body

The request body includes the following properties as form data:
Property
Data Type
Description
projectId
Integer
ID of the project into which you want to import the metadata.
datasources
String
For each connection from which you want to import metadata, enter the following details:
  • connectionId. String. ID of the TDM connection from which you want to import metadata.
  • name. String. Schema name.
  • sources. For each source that you want to import enter the following:
    • name. String. Name of the table.
schedule
Boolean
Default is 0 and runs the job immediately.

Sample Request

POST http://<host>:6605/api/public/tdm/v1/projects/201/metadata/connection

Sample Request Body

{ "connectionId": "U:R2VMLk5yEembepb_DyGynw", "datasources": [ { "name": "LOYALTY", "sources": [ { "name": "ADDRESS" } ] } ], "schedule": 0 }

Sample Response

{ "id": 201, "name": "Import from Source", "description": "Connection: SRC_OM1553458834135", "status": "In Queue", "start_date": 0, "end_date": 0, "job_type": "Import from Source", "created_by_name": null, "creation_date": 1553493620962, "creation_date_str": "03/25/2019 11:30:20 AM", "last_updated_date": 1553493620962, "last_updated_date_str": "03/25/2019 11:30:20 AM", "last_updated_by_name": null, "schedule_on": 0, "paused_at_step": 0, "percent_complete": 0, "job_action_type": null, "child_job_id": -1 }
You can view the imported metadata in Test Data Manager.

0 COMMENTS

We’d like to hear from you!