Yunique.Toolkit.API

<back to all web services

PackageDatabaseObjectList

Returns the list of database objects — views and stored procedures — which are used in the packages

The following routes are available for this service:
GET/v1/Package/DatabaseObject/
GET/v1/Package/DatabaseObject/{ObjectType}ObjectType can take the following values: View, StoredProcedure, Table
GET/v1/Package/DatabaseObject/{ObjectType}/{PackageID}ObjectType can take the following values: View, StoredProcedure, Table

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/PackageDatabaseObjectList HTTP/1.1 
Host: plm.gerber.fila.com 
Content-Type: application/xml
Content-Length: length

<PackageDatabaseObjectList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yunique.API.Rest.DTOs">
  <ObjectType>String</ObjectType>
  <PackageID>String</PackageID>
</PackageDatabaseObjectList>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PackageDatabaseObjectListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yunique.API.Rest.DTOs">
  <DatabaseObjects xmlns:d2p1="http://schemas.datacontract.org/2004/07/Yunique.API.Rest.DTOs.POCOs">
    <d2p1:PackageDatabaseObjectInfo>
      <d2p1:ObjectName>String</d2p1:ObjectName>
      <d2p1:ObjectType>String</d2p1:ObjectType>
      <d2p1:PackageDescription>String</d2p1:PackageDescription>
      <d2p1:PackageID>String</d2p1:PackageID>
      <d2p1:PackageName>String</d2p1:PackageName>
    </d2p1:PackageDatabaseObjectInfo>
  </DatabaseObjects>
</PackageDatabaseObjectListResponse>