We use cookies (just for analytics) on this website. If you continue we will assume you are happy with it. ok

BeBanjo

Back to index

Mapping entry

The mapping entry is used to associate a enumeration entry with a mapping

A mapping entry looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<mapping-entry>
  <id type="integer">34</id>
  <value>Bouygues</value>
  <link rel="entry" href="https://movida.bebanjo.net/api/entries/66475"/>
  <link rel="mapping" href="https://movida.bebanjo.net/api/mappings/7"/>
</mapping-entry>

Note: currently mapping entries cannot be created/updated/destroyed through the API. Please, contact your Technical Account Manager in order to define the list of enumeration and mapping entries suitable for your company.

Valid attributes

  • name (required): string used internally to identify that entry.
  • entry (optional): The enumeration entry it belongs to.
  • mapping (optional): The mapping it belongs to.

Get a list of all mapping entries for an enumeration entry

Mapping entries are accessed via the Enumeration entry they belong to, as in the example below, through the link identified by the rel="mapping_entries" attribute:

<?xml version='1.0' encoding='utf-8' ?>
<entries type="array">
  <entry>
    <id type="integer">66475</id>
    <value>France &gt; Bouygues &gt; Boing &gt; Catch Up</value>
    <description>France &gt; Bouygues &gt; Boing &gt; Catch Up</description>
    <link rel="self" href="https://movida.bebanjo.net/api/entries/66475"/>
    <link rel="enumeration" href="https://movida.bebanjo.net/api/enumerations/879"/>
    <link rel="mapping_entries" href="https://movida.bebanjo.net/api/entries/66475/mapping_entries"/>
  </entry>
</entries>

If we follow that link, we can fetch the list of all mapping entries for that enumeration entry.

$ curl --digest -u robot_user:password http://www.example.com/api/entries/66475/mapping_entries
<?xml version="1.0" encoding="UTF-8"?>
<mapping-entries type="array">
  <mapping-entry>
    <id type="integer">34</id>
    <value>Bouygues</value>
    <link rel="entry" href="https://movida.bebanjo.net/api/entries/66475"/>
    <link rel="mapping" href="https://movida.bebanjo.net/api/mappings/7"/>
  </mapping-entry>
  <mapping-entry>
    <id type="integer">35</id>
    <value>Boing</value>
    <link rel="entry" href="https://movida.bebanjo.net/api/entries/66475"/>
    <link rel="mapping" href="https://movida.bebanjo.net/api/mappings/8"/>
  </mapping-entry>
  <mapping-entry>
    <id type="integer">36</id>
    <value>Catch Up</value>
    <link rel="entry" href="https://movida.bebanjo.net/api/entries/66475"/>
    <link rel="mapping" href="https://movida.bebanjo.net/api/mappings/9"/>
  </mapping-entry>
  <mapping-entry>
    <id type="integer">1717</id>
    <value nil="true"/>
    <link rel="entry" href="https://movida.bebanjo.net/api/entries/66475"/>
    <link rel="mapping" href="https://movida.bebanjo.net/api/mappings/24"/>
  </mapping-entry>
</mapping-entries>

Last updated December 02th, 2019.