An open API service indexing awesome lists of open source software.

https://github.com/danielcaz/xray-demo

This is a demo api that includes X-Ray tracing for testing purposes.
https://github.com/danielcaz/xray-demo

aws aws-apigateway aws-lambda aws-xray

Last synced: 7 months ago
JSON representation

This is a demo api that includes X-Ray tracing for testing purposes.

Awesome Lists containing this project

README

          

# X-Ray Demo

## Description

This is a demo api that includes X-Ray tracing for testing purposes.

## Usage

### Deploy

```bash
sam deploy
```

### Invoke

#### Get all items

```bash
curl -X GET https://.execute-api..amazonaws.com/Dev
```

#### Get item by id

```bash
curl -X GET https://.execute-api..amazonaws.com/Dev/
```

#### Create/Update item

```bash
curl -X POST https://.execute-api..amazonaws.com/Dev -d '{ "id": "", "name": "" }'
```

#### Delete item

```bash
curl -X DELETE https://.execute-api..amazonaws.com/Dev/
```

## Resources created

- Lambda functions for CRUD operations
- DynamoDB table
- API Gateway
- IAM roles and policies
- X-Ray tracing