Skip to content

Commit a524bbc

Browse files
authored
doc: Merge pull request #69 from iamdavidmartin/master
document the undocumented 'method' param that defaults to 'get'
2 parents 5256472 + cf8974a commit a524bbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) ![Release](https://github.com/bboure/serverless-appsync-simulator/workflows/Release/badge.svg) <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
22
[![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors-)
3+
34
<!-- ALL-CONTRIBUTORS-BADGE:END -->
45

56
This serverless plugin is a wrapper for [amplify-appsync-simulator](https://github.com/aws-amplify/amplify-cli/tree/master/packages/amplify-appsync-simulator) made for testing AppSync APIs built with [serverless-appsync-plugin](https://github.com/sid88in/serverless-appsync-plugin).
@@ -224,16 +225,18 @@ Feel free to open a PR or an issue to extend them as well.
224225

225226
# External functions
226227

227-
When a function is not defined withing the current serverless file you can still call it by providing an invoke url which should point to a REST method (must be post).
228+
When a function is not defined withing the current serverless file you can still call it by providing an invoke url which should point to a REST method. Make sure you specify "get" or "post" for the method. Default is "get", but you probably want "post".
228229

229230
```yaml
230231
custom:
231232
appsync-simulator:
232233
functions:
233234
addUser:
234235
url: http://localhost:3016/2015-03-31/functions/addUser/invocations
236+
method: post
235237
addPost:
236238
url: https://jsonplaceholder.typicode.com/posts
239+
method: post
237240
```
238241

239242
# Supported Resolver types

0 commit comments

Comments
 (0)