Skip to content

Instantly share code, notes, and snippets.

@tuannguyenssu
Created August 15, 2019 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuannguyenssu/6170d1c52e472b361aef910b13b92ede to your computer and use it in GitHub Desktop.
Save tuannguyenssu/6170d1c52e472b361aef910b13b92ede to your computer and use it in GitHub Desktop.

@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