@awsless/awsless 0.0.42 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.MD CHANGED
@@ -133,7 +133,8 @@ We use AWS SNS to provide serverless pubsub topics.
133
133
  ```js
134
134
  {
135
135
  stacks: [{
136
- topics: {
136
+ topics: [ 'TOPIC_NAME' ],
137
+ subscribers: {
137
138
  TOPIC_NAME: 'topic-consumer.ts',
138
139
  }
139
140
  }]
@@ -176,7 +177,7 @@ We use AWS Event Bridge to provide serverless cron jobs.
176
177
 
177
178
  ## HTTP
178
179
 
179
- We use AWS ELB to provide a REST HTTP API.
180
+ We use AWS ELB to provide a HTTP API.
180
181
 
181
182
  ```js
182
183
  {
@@ -191,6 +192,23 @@ We use AWS ELB to provide a REST HTTP API.
191
192
  }
192
193
  ```
193
194
 
195
+ ## REST
196
+
197
+ We use AWS ApiGatewayV2 to provide a serverless REST API.
198
+
199
+ ```js
200
+ {
201
+ stacks: [{
202
+ rest: {
203
+ REST_API_NAME: {
204
+ 'GET /posts/{id}': 'get-posts.ts',
205
+ 'DELETE /posts/{id}': 'delete-post.ts',
206
+ }
207
+ }
208
+ }]
209
+ }
210
+ ```
211
+
194
212
  ## GraphQL
195
213
 
196
214
  We use AWS AppSync to provide a serverless GraphQL API.