Giter VIP home page Giter VIP logo

proxy-api-transformer's Introduction

Proxy Api Transformer

Transform, Mutate, Wrap your existing APIs

Serverless AWS Api gateway proxy function

Features

  • Create new endpoint mapped to an existing endpoint with transformed structure
  • Combine several existing endpoints into Parallel or Waterfall* workflows
  • Resolve Request body / path, Response using JSONPath
  • Transform final jobs output using jsonpath-object-transform or pure javascript function
  • Callback, usefull for attaching other workflows to an existing or new endpoint, such as counters, webhooks and more
  • Rich Config syntax sample config.js

Sample Config

sample

curl --request GET \
  --url http://localhost:3000/dev/al/my-new-endpoint
{
  "customers": [
    {
      "name": "Blanche Devereux"
    },
    {
      "name": "Rose Nylund"
    },
    {
      "name": "Shady Pines"
    }
  ],
  "mission_names": [
    "ANASIS-II",
    "Starlink-9 (v1.0) & BlackSky Global 5-6",
    "Starlink-10 (v1.0) & SkySat 19-21",
    "SAOCOM 1B, GNOMES-1, Tyvak-0172",
    "Starlink-11 (v1.0)",
    "Starlink-12 (v1.0)",
    "Starlink-13 (v1.0)",
    "Starlink-14 (v1.0)",
    "GPS III SV04 (Sacagawea)",
    "Crew-1",
    "Sentinel-6 Michael Freilich",
    "Starlink-15 (v1.0)"
  ],
  "bpi": {
    "USD": {
      "code": "USD",
      "symbol": "$",
      "rate": "52,874.6350",
      "description": "United States Dollar",
      "rate_float": 52874.635
    },
    "GBP": {
      "code": "GBP",
      "symbol": "£",
      "rate": "39,958.1548",
      "description": "British Pound Sterling",
      "rate_float": 39958.1548
    },
    "EUR": {
      "code": "EUR",
      "symbol": "€",
      "rate": "46,731.7657",
      "description": "Euro",
      "rate_float": 46731.7657
    }
  }
}

proxy-api-transformer's People

Contributors

metaory avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.