Skip to content

Commit ce86c60

Browse files
committed
feat: pathoverride for pull request
1 parent ca54b9c commit ce86c60

File tree

4 files changed

+10
-29
lines changed

4 files changed

+10
-29
lines changed

README.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
1+
![serverless](http://public.serverless.com/badges/v3.svg)
2+
[![Build Status](https://travis-ci.org/horike37/serverless-apigateway-service-proxy.svg?branch=master)](https://travis-ci.org/horike37/serverless-apigateway-service-proxy) [![npm version](https://badge.fury.io/js/serverless-apigateway-service-proxy.svg)](https://badge.fury.io/js/serverless-apigateway-service-proxy) [![Coverage Status](https://coveralls.io/repos/github/horike37/serverless-apigateway-service-proxy/badge.svg?branch=master)](https://coveralls.io/github/horike37/serverless-apigateway-service-proxy?branch=master) [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
23

34
# Serverless APIGateway Service Proxy
45

56
This Serverless Framework plugin supports the AWS service proxy integration feature of API Gateway. You can directly connect API Gateway to AWS services without Lambda.
6-
In addition this fork support customized Path overrides to cater more specialized use cases.
77

88
## Install
99

10-
Run `yarn add @hans_seek/serverless-apigateway-service-proxy` to install the plugin
10+
Run `serverless plugin install` in your Serverless project.
1111

1212
```bash
13-
yarn add @hans_seek/serverless-apigateway-service-proxy
14-
```
15-
16-
Or if using NPM:
17-
18-
```bash
19-
npm i @hans_seek/serverless-apigateway-service-proxy --save
13+
serverless plugin install -n serverless-apigateway-service-proxy
2014
```
2115

2216
## Supported AWS services
@@ -31,13 +25,6 @@ Please pull request if you are intersted in it.
3125

3226
## How to use
3327

34-
Add the Plugin to your `serverless.yml`
35-
36-
```yaml
37-
plugins:
38-
- '@hans_seek/serverless-apigateway-service-proxy'
39-
```
40-
4128
Define settings of the AWS services you want to integrate under `custom > apiGatewayServiceProxies` and run `serverless deploy`.
4229

4330
### Kinesis

lib/apiGateway/schema.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ const roleArn = stringOrGetAtt('roleArn', 'Arn')
9191

9292
const acceptParameters = Joi.object().pattern(Joi.string(), Joi.boolean().required())
9393

94-
/**
95-
* Changes for dynamic Path Override
96-
*/
9794
const pathoverride = Joi.string()
9895

9996
const proxy = Joi.object({

lib/package/s3/compileMethodsToS3.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ module.exports = {
142142
'Fn::GetAtt': ['ApigatewayToS3Role', 'Arn']
143143
}
144144

145-
/**
146-
* Dynamic Path Override
147-
*/
148145
let pather = '{bucket}/{object}'
149146

150147
if (_.has(http, 'pathoverride')) {

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@hans_seek/serverless-apigateway-service-proxy",
3-
"version": "1.3.1",
4-
"description": "This is a fork of https://www.npmjs.com/package/serverless-apigateway-service-proxy. The Serverless Framewrok plugin for supporting AWS service proxy integration of API Gateway",
2+
"name": "serverless-apigateway-service-proxy",
3+
"version": "1.3.0",
4+
"description": "The Serverless Framewrok plugin for supporting AWS service proxy integration of API Gateway",
55
"main": "lib/index.js",
66
"scripts": {
77
"lint": "eslint .",
@@ -31,7 +31,7 @@
3131
"<rootDir>/__tests__/setup-tests.js"
3232
]
3333
},
34-
"author": "Hans Roessler",
34+
"author": "horike37",
3535
"license": "MIT",
3636
"devDependencies": {
3737
"@commitlint/cli": "^8.1.0",
@@ -61,6 +61,6 @@
6161
},
6262
"repository": {
6363
"type": "git",
64-
"url": "https://github.com/Hans-Seek/serverless-apigateway-service-proxy.git"
64+
"url": "https://github.com/horike37/serverless-apigateway-service-proxy.git"
6565
}
66-
}
66+
}

0 commit comments

Comments
 (0)