{"id":13538327,"url":"https://github.com/metaory/proxy-api-transformer","last_synced_at":"2025-03-29T21:25:02.157Z","repository":{"id":74378733,"uuid":"434777808","full_name":"metaory/proxy-api-transformer","owner":"metaory","description":"Transform, Mutate, Wrap your existing APIs","archived":false,"fork":false,"pushed_at":"2022-05-05T02:59:49.000Z","size":221,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-04T22:17:47.893Z","etag":null,"topics":["api","api-proxy","api-transformer","jsonpath","jsonpath-query"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/metaory.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-12-04T01:21:59.000Z","updated_at":"2023-08-04T18:06:36.000Z","dependencies_parsed_at":"2023-07-03T10:18:02.654Z","dependency_job_id":null,"html_url":"https://github.com/metaory/proxy-api-transformer","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/metaory%2Fproxy-api-transformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fproxy-api-transformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fproxy-api-transformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fproxy-api-transformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaory","download_url":"https://codeload.github.com/metaory/proxy-api-transformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246245236,"owners_count":20746608,"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":["api","api-proxy","api-transformer","jsonpath","jsonpath-query"],"created_at":"2024-08-01T09:01:09.981Z","updated_at":"2025-03-29T21:25:02.134Z","avatar_url":"https://github.com/metaory.png","language":"JavaScript","readme":"Proxy Api Transformer\n=====================\n\n### Transform, Mutate, Wrap your existing APIs\n\n#### Serverless AWS Api gateway proxy function\n\n### Features\n- Create new endpoint mapped to an existing endpoint with transformed structure\n- Combine several existing endpoints into Parallel or Waterfall\\* workflows\n- Resolve Request body / path, Response using [JSONPath](https://github.com/JSONPath-Plus/JSONPath)\n- Transform final jobs output using [jsonpath-object-transform](https://github.com/dvdln/jsonpath-object-transform) or pure javascript function\n- Callback, usefull for attaching other workflows to an existing or new endpoint, such as counters, webhooks and more\n- Rich Config syntax [sample config.js](./config/index.js#L12)\n\n#### Sample Config\n![sample](./assets/config.png)\n\n\n```bash\ncurl --request GET \\\n  --url http://localhost:3000/dev/al/my-new-endpoint\n```\n\n```json\n{\n  \"customers\": [\n    {\n      \"name\": \"Blanche Devereux\"\n    },\n    {\n      \"name\": \"Rose Nylund\"\n    },\n    {\n      \"name\": \"Shady Pines\"\n    }\n  ],\n  \"mission_names\": [\n    \"ANASIS-II\",\n    \"Starlink-9 (v1.0) \u0026 BlackSky Global 5-6\",\n    \"Starlink-10 (v1.0) \u0026 SkySat 19-21\",\n    \"SAOCOM 1B, GNOMES-1, Tyvak-0172\",\n    \"Starlink-11 (v1.0)\",\n    \"Starlink-12 (v1.0)\",\n    \"Starlink-13 (v1.0)\",\n    \"Starlink-14 (v1.0)\",\n    \"GPS III SV04 (Sacagawea)\",\n    \"Crew-1\",\n    \"Sentinel-6 Michael Freilich\",\n    \"Starlink-15 (v1.0)\"\n  ],\n  \"bpi\": {\n    \"USD\": {\n      \"code\": \"USD\",\n      \"symbol\": \"\u0026#36;\",\n      \"rate\": \"52,874.6350\",\n      \"description\": \"United States Dollar\",\n      \"rate_float\": 52874.635\n    },\n    \"GBP\": {\n      \"code\": \"GBP\",\n      \"symbol\": \"\u0026pound;\",\n      \"rate\": \"39,958.1548\",\n      \"description\": \"British Pound Sterling\",\n      \"rate_float\": 39958.1548\n    },\n    \"EUR\": {\n      \"code\": \"EUR\",\n      \"symbol\": \"\u0026euro;\",\n      \"rate\": \"46,731.7657\",\n      \"description\": \"Euro\",\n      \"rate_float\": 46731.7657\n    }\n  }\n}\n```\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fproxy-api-transformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaory%2Fproxy-api-transformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fproxy-api-transformer/lists"}