RelationsLink

curl example

curl '/api/<EntityName>/<ReferenceId>/<RelationName>?sort=&page[number]=1&page[size]=10'  -H 'Authorization: Bearer <Token>'

php example

<?php
include('vendor/rmccue/requests/library/Requests.php');
Requests::register_autoloader();
$headers = array(
    'Authorization' => 'Bearer <Token>'
);

python example

import requests

headers = {
    'Authorization': 'Bearer <Token>',
}

params = (
    ('sort', ''),
    ('page/[number/]', '1'),
    ('page/[size/]', '10'),
)

response = requests.get('http://localhost:6336/api/user_account/696c98d3-3b8b-41da-a510-08e6948cf661/marketplace_id', headers=headers, params=params)

#NB. Original query string below. It seems impossible to parse and
#reproduce query strings 100% accurately so the one below is given
#in case the reproduced version is not "correct".
# response = requests.get('http://localhost:6336/api/user_account/696c98d3-3b8b-41da-a510-08e6948cf661/marketplace_id?sort=&page\[number\]=1&page\[size\]=10', headers=headers)

nodejs example

var request = require('request');

var headers = {
    'Authorization': 'Bearer <Token>'
};

var options = {
    url: '/api/<EntityName>/<ReferenceId>/<RelationName>?sort=&page[number]=1&page[size]=10',
    headers: headers
};

function callback(error, response, body) {
    if (!error && response.statusCode == 200) {
        console.log(body);
    }
}

request(options, callback);

python example

import requests

headers = {
    'Authorization': 'Bearer <Token>',
}

params = (
    ('sort', ''),
    ('page[number]', '1'),
    ('page[size]', '10'),
)

response = requests.get('/api/<EntityName>/<ReferenceId>/<RelationName>', headers=headers, params=params)