Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

ModelSEED Database Iterator REST

Scott Devoid edited this page Jun 29, 2012 · 1 revision

ModelSEED::Database::Iterator::REST

REST implementation of Iterator

Description

This follows the same interface as ModelSEED::Database::Iterator.

Initialization

This accepts a reference to a perl structure that is the return value from a collection resource. That return value should look something like this:

{
    limit: 30,
    offset        : 10,
    resultSetSize : 40321,
    results       : [// ... results ...],
    next_url : "http://model-api.theseed.org/biochemistry?limit=30&offset=40",
}

Or simply the starting uri:

{
    reference : "http://model-api.theseed.org/biochemistry"
}