Skip to content

Instantly share code, notes, and snippets.

@tuannguyenssu
Created September 26, 2019 14:54
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/8f7adf9376c91a8cb0076592f49fc878 to your computer and use it in GitHub Desktop.
Save tuannguyenssu/8f7adf9376c91a8cb0076592f49fc878 to your computer and use it in GitHub Desktop.

@url = http://localhost:5000 @customerTestId = 6d8c9f2a29e7f3c7ca6f57a4

### GET {{url}}/api/books

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

{

"id": "{{customerTestId}}", "name": "Dotnet Co Ban", "price": 1.0, "category": "Computers", "author": "Tuan"

}

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

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

{

"id": "{{customerTestId}}", "name": "Dotnet Co Ban", "price": 1.0, "category": "Computers", "author": "Tuan Nguyen"

}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment