@url = http://localhost:8080
@token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiJmNWU2YzM0Mi1hYjJjLTRmZWMtODk0OC1lNWY4NzcyOWUxOWMiLCJ1bmlxdWVfbmFtZSI6InRlc3QiLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6IkRQQUo2QkEzUFdTVk0zSzRSTUdTMjNHTzRZNUlOWUZaIiwibmJmIjoxNjEwMDA2MzE4LCJleHAiOjE2MTA2MTExMTgsImlhdCI6MTYxMDAwNjMxOCwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdCIsImF1ZCI6Imh0dHA6Ly9sb2NhbGhvc3QifQ.nxMFj_Doq5j2h5TmKlLO8FfzOIb5Uf7mzuzDcX_cYJU

GET {{url}}/api/links

###

POST {{url}}/api/links
Authorization: Bearer {{token}}
Content-Type: application/json

{
  "url": "http://some.where"
}

###

GET {{url}}/api/links/e2efcfb8-87b7-4166-a20c-8d189ea10ff0

###

GET {{url}}/api/links/e2efcfb8-87b7-4166-a20c-8d189ea10ff0/comments

###

POST {{url}}/api/comments
Authorization: Bearer {{token}}
Content-Type: application/json

{
  "content": "3eme commentaire",
  "linkId": "e2efcfb8-87b7-4166-a20c-8d189ea10ff0"
}

###

GET {{url}}/api/comments/me
Authorization: Bearer {{token}}

###

PUT {{url}}/api/links/e2efcfb8-87b7-4166-a20c-8d189ea10ff0/upvote

###

PUT {{url}}/api/links/e2efcfb8-87b7-4166-a20c-8d189ea10ff0/downvote

###

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

{
  "Username": "test",
  "Password": "test",
  "ConfirmPassword": "test"
}

###

POST {{url}}/api/accounts/token
Content-Type: application/json

{
  "Username": "test",
  "Password": "test"
}

###

PUT {{url}}/api/comments/d393b4a2-1606-4deb-ace9-5e49e0b6d3dd/upvote
Authorization: Bearer {{token}}