Skip to content

Instantly share code, notes, and snippets.

@tuannguyenssu tuannguyenssu/ApiTest.rest Secret
Created Aug 15, 2019

Embed
What would you like to do?

@url = http://localhost:5000 @customerTestId = 3

### GET {{url}}/api/customers

### POST {{url}}/api/customers Content-Type: application/json

{
"id": "{{customerTestId}}", "name": "Alex", "address": "US"

}

### GET {{url}}/api/customers/{{customerTestId}}

### PUT {{url}}/api/customers/{{customerTestId}} Content-Type: application/json

{
"id": "{{customerTestId}}", "name": "Alex Ferguson", "address": "UK"

}

### DELETE {{url}}/api/customers/{{customerTestId}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.