{ "opencollection": "1.0.0", "info": { "name": "Labguru Antibodies Stocks API", "version": "v1" }, "items": [ { "info": { "name": "Stocks", "type": "folder" }, "items": [ { "info": { "name": "List all stocks in your account", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v1/stocks", "params": [ { "name": "token", "value": "", "type": "query" }, { "name": "page", "value": "", "type": "query", "description": "the default call is with page = 1" }, { "name": "meta", "value": "", "type": "query", "description": "show summarized data information - true/false" }, { "name": "stockable_type", "value": "Biocollections::Tissue", "type": "query", "description": "inventory item type(In order to list all stocks of a stockable item)" }, { "name": "stockable_id", "value": "105", "type": "query", "description": "inventory item id (In order to list all stocks of a stockable item)" }, { "name": "filter", "value": "", "type": "query", "description": "**Implementation of the filter necessitates the utilization of all three components: field name, operator, and value**\n\n**Valid field names are:**\n\n\n \n \n \n \n
\n
    \n
  • name
  • \n
  • id
  • \n
  • volume_to_display
  • \n
  • weight_to_display
  • \n
  • storage_location
  • \n
  • created_at
  • \n
  • owner_id
  • \n
  • description
  • \n
  • stored_on
  • \n
  • stored_by
  • \n
\n
\n
    \n
  • privacy
  • \n
  • container_type
  • \n
  • units
  • \n
  • lot
  • \n
  • expiration_date
  • \n
  • aliquoted_by
  • \n
  • aliquoted_on
  • \n
  • content
  • \n
  • barcode
  • \n
  • concentration_to_display
  • \n
\n
\n\n**Valid operators are:**\n\n \n \n \n \n
\n String operators\n
    \n
  • contains: contains
  • \n
  • eq: is equal to
  • \n
  • neq: is not equal to
  • \n
  • doesnotcontain: not contains
  • \n
  • startswith: starts with
  • \n
  • endswith: ends with
  • \n
  • isnullorempty: is empty
  • \n
  • isnotnullorempty: is not empty
  • \n
\n
\n Date & Number operators\n
    \n
  • _eq: is equal to
  • \n
  • _neq: is not equal to
  • \n
  • _gte: is after than or equal to
  • \n
  • _gt: is after than
  • \n
  • _lte: is before than or equal to
  • \n
  • _lt: is before than
  • \n
  • isnull: is empty
  • \n
  • isnotnull: is not empty
  • \n
\n
\n\n\n\n\n**Value:** The desired search term\n" } ] }, "docs": "List all stocks in your account" }, { "info": { "name": "Add stock", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v1/stocks", "body": { "type": "json", "data": "{}" } }, "docs": "Add stock" }, { "info": { "name": "Marks stock as consumed", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v1/stocks/:id/mark_as_consumed", "params": [ { "name": "id", "value": "", "type": "path", "description": "stock id" }, { "name": "token", "value": "", "type": "query" } ] }, "docs": "Marks stock as consumed" }, { "info": { "name": "Marks stock as output", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v1/stocks/:id/mark_as_output", "params": [ { "name": "id", "value": "", "type": "path", "description": "stock id" }, { "name": "token", "value": "", "type": "query" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Marks stock as output" }, { "info": { "name": "Unmarks stock as output", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v1/stocks/:id/unmark_output", "params": [ { "name": "id", "value": "", "type": "path", "description": "stock id" }, { "name": "token", "value": "", "type": "query" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Unmarks stock as output" }, { "info": { "name": "Update stock weight/volume for stock in sample element", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v1/stocks/:id/update_stock_amount", "params": [ { "name": "token", "value": "", "type": "query" }, { "name": "id", "value": "", "type": "path", "description": "stock id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update stock weight/volume for stock in sample element" }, { "info": { "name": "Get stock by id", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v1/stocks/:id", "params": [ { "name": "token", "value": "", "type": "query" }, { "name": "id", "value": "", "type": "path", "description": "stock id" } ] }, "docs": "Get stock by id" }, { "info": { "name": "Update stock attributes", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v1/stocks/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "stock id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update stock attributes" }, { "info": { "name": "Delete stock", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v1/stocks/:id", "params": [ { "name": "token", "value": "", "type": "query" }, { "name": "id", "value": "", "type": "path", "description": "stock id" } ] }, "docs": "Delete stock" }, { "info": { "name": "Get stock by barcode/id", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v1/stocks/get_stocks_by_barcode", "params": [ { "name": "token", "value": "", "type": "query" }, { "name": "input", "value": "AB-588", "type": "query", "description": "Stock’s Barcode or Id " } ] }, "docs": "Get stock by barcode/id" } ] } ], "bundled": true }