-
Previously I'd been using data from CivilServiceUSA source of data for governors, but as it is being discontinued, I was wondering if OpenStates might provide an alternative path forward. I understand executive (governors) and municipal (majors and the like) data was modeled and loaded in with the following issues:
I've been exploring the API endpoints, but thus far, I don't see any endpoints that provide a way to resolve the relationships. I was thinking that maybe Sample GraphQL for a PersonI see the baseline data for a person, but nothing linking the person to the role. Sample GraphQL for a Personquery Person {
person(id: "ocd-person/cb607080-ff7b-48c8-acf4-0180e6e2f999") {
id
name
primaryParty
currentMemberships {
id
label
role
organization {
id
name
}
}
}
} Sample GraphQL for JurisdictionHere, I can find the expected org relationship, but nothing attaching the org to a role. Sample GraphQL for a Jurisdictionquery Jurisdiction {
jurisdiction(name: "New Mexico") {
id
name
url
classification
organizations(first: 100, classification: "executive") {
orgList: edges {
org: node {
id
name
classification
currentMemberships {
id
label
personName
}
}
}
}
}
} Any guidance or recommendations would be appreciated (even that's just alternative recommended sources). Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Just noticed that the graphql api is being discontinued |
Beta Was this translation helpful? Give feedback.
Just noticed that the graphql api is being discontinued☹️ but the
V3
api can easily retrieve this.{{baseUrl}}/people?jurisdiction=New Mexico&org_classification=executive