GET api/user/productPaths?username={username}&productIsbn={productIsbn}

Returns paths between user and product

Request Information

URI Parameters

NameDescriptionTypeAdditional information
username

Username

string

Required

productIsbn

Product isbn

string

Required

Body Parameters

None.

Response Information

Resource Description

UserProductPathDto
NameDescriptionTypeAdditional information
Nodes

Collection of UserProductNodeDto

None.

Links

Collection of UserProductLinkDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Nodes": [
    {
      "Id": "e4b9993f-7558-4597-bab6-024860be297e",
      "NodeType": "sample string 2",
      "NodeProperties": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      }
    },
    {
      "Id": "e4b9993f-7558-4597-bab6-024860be297e",
      "NodeType": "sample string 2",
      "NodeProperties": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      }
    }
  ],
  "Links": [
    {
      "Source": "8dd44da0-dc97-4275-ad45-86d18203ae3c",
      "Target": "876454de-c82b-4621-8008-3717397a725c"
    },
    {
      "Source": "8dd44da0-dc97-4275-ad45-86d18203ae3c",
      "Target": "876454de-c82b-4621-8008-3717397a725c"
    }
  ]
}

application/xml, text/xml

Sample:
<UserProductPathDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Dtos.UserProducts">
  <Links>
    <UserProductLinkDto>
      <Source>8dd44da0-dc97-4275-ad45-86d18203ae3c</Source>
      <Target>876454de-c82b-4621-8008-3717397a725c</Target>
    </UserProductLinkDto>
    <UserProductLinkDto>
      <Source>8dd44da0-dc97-4275-ad45-86d18203ae3c</Source>
      <Target>876454de-c82b-4621-8008-3717397a725c</Target>
    </UserProductLinkDto>
  </Links>
  <Nodes>
    <UserProductNodeDto>
      <Id>e4b9993f-7558-4597-bab6-024860be297e</Id>
      <NodeProperties xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </NodeProperties>
      <NodeType>sample string 2</NodeType>
    </UserProductNodeDto>
    <UserProductNodeDto>
      <Id>e4b9993f-7558-4597-bab6-024860be297e</Id>
      <NodeProperties xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </NodeProperties>
      <NodeType>sample string 2</NodeType>
    </UserProductNodeDto>
  </Nodes>
</UserProductPathDto>