Operation Refactor America's wrapped United States Bureau Census Bureau's REST API with GraphQL Server. The REST endpoints have been mapped as GraphQL types and resolvers. Note: Using this API requires a free API Key, which can be acquired at https://ridb.recreation.gov/?action=register. Once your API Key is received, go to ./config/config.js and enter the API key into APIKEY.
If you'd like to contribute to this project, please fork this repository over and submit a pull request.
- About the Data
- About Operation Refactor America
- GraphQL Server: Apollo Server
- GraphQL Server: Start
- GraphQL Server: Query
- GraphQL Server: Testing API Endpoints
- API Data:
- GraphQL Query Examples
Operation Refactor America is a not associated with any government agency, but our goal is to empower citizens with transparent data. Only a fraction of government agencies provide public APIs, which are usually poorly documented, built on archaic REST architecture, and contains scattered data. Our mission is to retrieve that valuable data and convert them into an intuitive and modern API using GraphQL Server.
The data comes directly from the United States Department of Agriculture's REST API. The REST endpoints have been mapped as GraphQL types and resolvers. A summary of endpoints and documentation can be found here: http://usda.github.io/RIDB/
This GraphQL server uses apollo-server-express and not Facebook's graphql-express.
npm run server
http://localhost:4000/graphiql
npm jest
Query:
Query:
GraphQL Result:
Query:
GraphQL Result: