psychonautwiki / bifrost

The PsychonautWiki API.
MIT License
48 stars 10 forks source link

Migrate ROAs to array-based approach as proposed in JIRA API-4 #3

Closed 19h closed 6 years ago

19h commented 7 years ago

Implement functionality reported by Tim Cools, further asked for by Alice Knag in JIRA tracking issue API-4.

19h commented 6 years ago

Now possible:

{
  substances(query: "Armodafinil") {
    roas {
        name

        dose {
          units
          threshold
          heavy
          common { min max }
          light { min max }
          strong { min max }
        }

        duration {
          afterglow { min max units }
          comeup { min max units }
          duration { min max units }
          offset { min max units }
          onset { min max units }
          peak { min max units }
          total { min max units }
        }

        bioavailability {
          min max
        }
    }
  }
}