@PORT=3100
@HOST=localhost

###
get http://{{HOST}}:{{PORT}}

###
post http://{{HOST}}:{{PORT}}

###
put http://{{HOST}}:{{PORT}}

###
delete http://{{HOST}}:{{PORT}}

### Path not defined
get http://{{HOST}}:{{PORT}}/xyz

### API not defined
patch http://{{HOST}}:{{PORT}}

###
get http://{{HOST}}:{{PORT}}/error

############################
### Test JWT using a secert
############################

### Login 1 - Valid User
POST http://{{HOST}}:{{PORT}}/api/v1/login/secret
Content-Type: application/json

{
  "name": "Rajinder", "password":"ldkfj34kjrpoiro34lj5l345"
}

### Protect route valid
GET http://{{HOST}}:{{PORT}}/api/v1/protected/secret
Content-Type: application/json

### Login 2 - Invalid User
POST http://{{HOST}}:{{PORT}}/api/v1/login/secret
Content-Type: application/json

{
  "name": "Shivaji"
}

#############################
### Test JWT using a SSL keys
#############################

### Login 1 - Valid User
POST http://{{HOST}}:{{PORT}}/api/v1/login/key
Content-Type: application/json

{
  "name": "Rajinder", "password":"ldkfj34kjrpoiro34lj5l345"
}

### Protect route valid
GET http://{{HOST}}:{{PORT}}/api/v1/protected/key
Content-Type: application/json

### Protect route valid
GET http://{{HOST}}:{{PORT}}/api/v1/protected/bearer
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiU2hpdmFqaSIsImV4cCI6MTcwMjk3ODA3OSwiaWF0IjoxNzAyOTc4MDU5fQ. 

### Login 2 - Invalid User
POST http://{{HOST}}:{{PORT}}/api/v1/login/key
Content-Type: application/json

{
  "name": "Shivaji"
}
