{"id":13566793,"url":"https://github.com/apicollective/graphql-rest-proxy","last_synced_at":"2025-04-04T00:32:13.509Z","repository":{"id":150394650,"uuid":"143057919","full_name":"apicollective/graphql-rest-proxy","owner":"apicollective","description":null,"archived":true,"fork":false,"pushed_at":"2020-09-11T02:51:38.000Z","size":448,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-04T21:37:08.862Z","etag":null,"topics":["apollo","graphql","graphql-server","proxy","rest"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apicollective.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-31T19:25:24.000Z","updated_at":"2023-01-28T12:39:49.000Z","dependencies_parsed_at":"2023-04-25T16:19:47.011Z","dependency_job_id":null,"html_url":"https://github.com/apicollective/graphql-rest-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apicollective%2Fgraphql-rest-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apicollective%2Fgraphql-rest-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apicollective%2Fgraphql-rest-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apicollective%2Fgraphql-rest-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apicollective","download_url":"https://codeload.github.com/apicollective/graphql-rest-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247103290,"owners_count":20884023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apollo","graphql","graphql-server","proxy","rest"],"created_at":"2024-08-01T13:02:16.951Z","updated_at":"2025-04-04T00:32:13.155Z","avatar_url":"https://github.com/apicollective.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# graphql-rest-proxy\n\n[![Build Status](https://travis-ci.org/apicollective/graphql-rest-proxy.svg?branch=master)](https://travis-ci.org/apicollective/graphql-rest-proxy)\n\n`graphql-rest-proxy` is a GraphQL server that proxies all requests to a REST API, and handles the translation of data. It reads a number of [configuration files](config.json), and constructs a schema and object graph.\n\n## Configuration\nThe configuration format is similar to [APIBuilder](https://app.apibuilder.io/doc/apiJson).\n\nDefine your base_url:\n```json\n\"base_url\": \"https://swapi.co/api\",\n```\n\nDefine your models:\n```json\n\"models\": {\n  \"people\": {\n    \"description\": \"a person in the star wars universe\",\n    \"fields\": [\n      { \"name\": \"gender\", \"type\": \"string\", \"description\": \"male, female, unknown, or n/a\" },\n      ...\n    ]\n  }\n},\n```\n\nDefine your resources:\n```json\n\"resources\": {\n  \"people\": {\n    \"many\": {\n      \"path\": \"/people\",\n      \"extract\": \"$.results\",\n      \"params\": {\n        \"search\": { \"type\": \"string\", \"required\": false },\n        \"page\": { \"type\": \"integer\", \"required\": false, \"default\": 1 }\n      }\n    }\n  }\n}\n```\n\n### Valid Types\n| Type string       | GraphQL Type                                               |\n| ----------------- | ---------------------------------------------------------- |\n| boolean           | Boolean                                                    |\n| date              | [Date](https://www.npmjs.com/package/graphql-iso-date)     |\n| date-time-iso8601 | [DateTime](https://www.npmjs.com/package/graphql-iso-date) |\n| double            | Float                                                      |\n| integer           | Int                                                        |\n| json              | [JSON](https://www.npmjs.com/package/graphql-type-json)    |\n| long              | [Long](src/util/scalars.ts#L9)                             |\n| string            | String                                                     |\n| object            | [Object](src/util/scalars.ts#L27)                          |\n| unit              | [Unit](src/util/scalars.ts#L38)                            |\n| uuid              | ID                                                         |\n\n## Authentication\nThe only currently supported method of API authentication is by proxying the `Authorization` HTTP header from the GraphQL server to the REST backend. This is automatically done on every request.\n\n## Resources and Parameters\nTODO\n\n## Links\nTODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapicollective%2Fgraphql-rest-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapicollective%2Fgraphql-rest-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapicollective%2Fgraphql-rest-proxy/lists"}