resources/clients/react/elwing/src/plugins/item-tracker/README.md
Shows how to use React to create a web page that connects to a REST service that lets you do the following:
The web client is designed to send requests to one of the following sample applications. Each sample application shows you how to use an AWS SDK to store work items using AWS resources:
Run Elwing by following the instructions in the Elwing README.
When Elwing starts, a web browser opens http://localhost:3000/.
Run the item tracker plugin by selecting Item Tracker in the left navigation bar.
This sends a request to the REST service to get any existing active items:
GET http://localhost:8080/api/items?archived=false
At first, the table is empty.
Select Add item, fill in the values, and select Add to add an item.
This sends a POST request to the REST service with a JSON payload that contains the work item.
POST http://localhost:8080/api/items
{"name":"Me",
"guide":"Rust",
"description":"Show how to add an item",
"status":"In progress",
"archived":false}
After you add items, they display in the table. You can archive an active item by selecting the Archive button next to the item.
This sends a PUT request to the REST service, specifying the item ID and the archive action.
PUT http://localhost:8080/api/items/8db8aaa4-6f04-4467-bd60-EXAMPLEGUID:archive
To get and display items with a specific status, select a filter in the dropdown list, such as Archived.
This sends a GET request to the REST service with an archived query parameter.
GET http://localhost:8080/api/items?archived=true
Enter an email recipient and select Send report to send an email of active items.
This sends a POST request to the REST service with a report action.
POST http://localhost:8080/api/items:report
When your Amazon Simple Email Service (Amazon SES) account is in the sandbox, both the sender and recipient email addresses must be registered with Amazon SES.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0