Request

GET /item/

Response

200 OK
Content-Type: application/json
{
    "meta": {
        "previous": null, 
        "total_count": 3, 
        "offset": 0, 
        "limit": 20, 
        "next": null
    }, 
    "objects": [
        {
            "description": "Item 1", 
            "reference": "ITEM1", 
            "tax": "/api/v1/tax/5231cc864ab63c53dc900531/", 
            "unit_price": "19.90", 
            "currency": "/api/v1/currency/5231cbd54ab63c53dc90046c/", 
            "type": "PRODUCT", 
            "id": "5231cc864ab63c53dc900532", 
            "resource_uri": "/api/v1/item/5231cc864ab63c53dc900532/"
        }, 
        {
            "description": "Item 2", 
            "reference": "ITEM2", 
            "tax": "/api/v1/tax/5231cc864ab63c53dc900531/", 
            "unit_price": "19.90", 
            "currency": "/api/v1/currency/5231cbd54ab63c53dc90046c/", 
            "type": "PRODUCT", 
            "id": "5231cc864ab63c53dc900533", 
            "resource_uri": "/api/v1/item/5231cc864ab63c53dc900533/"
        }, 
        {
            "description": "Item 3", 
            "reference": "ITEM3", 
            "tax": "/api/v1/tax/5231cc864ab63c53dc900531/", 
            "unit_price": "19.90", 
            "currency": "/api/v1/currency/5231cbd54ab63c53dc90046c/", 
            "type": "PRODUCT", 
            "id": "5231cc864ab63c53dc900534", 
            "resource_uri": "/api/v1/item/5231cc864ab63c53dc900534/"
        }
    ]
}

Request

GET /item/

Response

200 OK
Content-Type: application/xml; charset=utf-8
<response>
  <objects type="list">
    <object>
      <description>Item 1</description>
      <reference>ITEM1</reference>
      <tax>/api/v1/tax/5231cc864ab63c53dc900531/</tax>
      <unit_price>19.90</unit_price>
      <currency>/api/v1/currency/5231cbd54ab63c53dc90046c/</currency>
      <type>PRODUCT</type>
      <id>5231cc864ab63c53dc900532</id>
      <resource_uri>/api/v1/item/5231cc864ab63c53dc900532/</resource_uri>
    </object>
    <object>
      <description>Item 2</description>
      <reference>ITEM2</reference>
      <tax>/api/v1/tax/5231cc864ab63c53dc900531/</tax>
      <unit_price>19.90</unit_price>
      <currency>/api/v1/currency/5231cbd54ab63c53dc90046c/</currency>
      <type>PRODUCT</type>
      <id>5231cc864ab63c53dc900533</id>
      <resource_uri>/api/v1/item/5231cc864ab63c53dc900533/</resource_uri>
    </object>
    <object>
      <description>Item 3</description>
      <reference>ITEM3</reference>
      <tax>/api/v1/tax/5231cc864ab63c53dc900531/</tax>
      <unit_price>19.90</unit_price>
      <currency>/api/v1/currency/5231cbd54ab63c53dc90046c/</currency>
      <type>PRODUCT</type>
      <id>5231cc864ab63c53dc900534</id>
      <resource_uri>/api/v1/item/5231cc864ab63c53dc900534/</resource_uri>
    </object>
  </objects>
  <meta type="hash">
    <next type="null"/>
    <total_count type="integer">3</total_count>
    <previous type="null"/>
    <limit type="integer">20</limit>
    <offset type="integer">0</offset>
  </meta>
</response>

Request

GET /item/

Response

200 OK
Content-Type: text/yaml; charset=utf-8
meta: {limit: 20, next: null, offset: 0, previous: null, total_count: 3}
objects:
- {currency: !!python/unicode '/api/v1/currency/5231cbd54ab63c53dc90046c/', description: !!python/unicode 'Item
1', id: !!python/unicode '5231cc864ab63c53dc900532', reference: !!python/unicode 'ITEM1',
resource_uri: !!python/unicode '/api/v1/item/5231cc864ab63c53dc900532/', tax: !!python/unicode '/api/v1/tax/5231cc864ab63c53dc900531/',
type: !!python/unicode 'PRODUCT', unit_price: !!python/unicode '19.90'}
- {currency: !!python/unicode '/api/v1/currency/5231cbd54ab63c53dc90046c/', description: !!python/unicode 'Item
2', id: !!python/unicode '5231cc864ab63c53dc900533', reference: !!python/unicode 'ITEM2',
resource_uri: !!python/unicode '/api/v1/item/5231cc864ab63c53dc900533/', tax: !!python/unicode '/api/v1/tax/5231cc864ab63c53dc900531/',
type: !!python/unicode 'PRODUCT', unit_price: !!python/unicode '19.90'}
- {currency: !!python/unicode '/api/v1/currency/5231cbd54ab63c53dc90046c/', description: !!python/unicode 'Item
3', id: !!python/unicode '5231cc864ab63c53dc900534', reference: !!python/unicode 'ITEM3',
resource_uri: !!python/unicode '/api/v1/item/5231cc864ab63c53dc900534/', tax: !!python/unicode '/api/v1/tax/5231cc864ab63c53dc900531/',
type: !!python/unicode 'PRODUCT', unit_price: !!python/unicode '19.90'}