You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: todoDB-es6/README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -79,19 +79,19 @@ export class GetAllTodos extends TodoService {
79
79
staticasynchandle() {}
80
80
}
81
81
```
82
-
If you want your service to be accessible with a web request over a rest interface then you have to decorate it with the [rest]() decorator. We need a `path`and have to set the `cors` and the `anonymous` properties to `true` because we want to call it without authentication and from another domain.
82
+
If you want your service to be accessible with a web request over a rest interface then you have to decorate it with the [rest]() decorator. We have to set the `path`property to define the rest endpoint. If we do not set the `methods` property that means it will accept `GET` requests. (default: `methods: ['get']`)
Define a [description]() for the `TodoService`, which will make it easier to find in the AWS Lambda list.
87
87
```js
88
88
@description('get all Todo service')
89
89
```
90
-
Now we have to create the business logic. We want to read the todo items, so we need to inject the `TodoTable`. Get the items from it and return from our service. If we do not set the `methods` property that means it will accept `GET` requests. (default: `methods: ['get']`)
90
+
Now we have to create the business logic. We want to read the todo items, so we need to inject the `TodoTable`. Get the items from it and return from our service.
0 commit comments