Skip to content

Commit

Permalink
Merge pull request #2 from aschenmaker/fix-resthttp
Browse files Browse the repository at this point in the history
fix rest.http file
  • Loading branch information
rebootcode authored May 26, 2021
2 parents a35d874 + 558a33e commit 20fc98e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rest.http
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GET http://127.0.0.1:8080 HTTP/1.1

POST http://127.0.0.1:8080/api/create HTTP/1.1
content-type: application/json
Authorization: "Bearer 1234567812345678123456781234567"
Authorization: Bearer 12345678123456781234567812345678

{
"url": "https://example.com"
Expand All @@ -16,7 +16,7 @@ Authorization: "Bearer 1234567812345678123456781234567"

POST http://127.0.0.1:8080/api/update HTTP/1.1
content-type: application/json
Authorization: "Bearer 1234567812345678123456781234567"
Authorization: Bearer 12345678123456781234567812345678

{
"old": "https://example.com",
Expand All @@ -28,19 +28,19 @@ Authorization: "Bearer 1234567812345678123456781234567"

GET http://127.0.0.1:8080/api/fetch HTTP/1.1
content-type: application/json
Authorization: "Bearer 1234567812345678123456781234567"
Authorization: Bearer 12345678123456781234567812345678

### Fetch specific short URL traffic details

GET http://127.0.0.1:8080/api/fetch/N1|123ME1oJPK HTTP/1.1
content-type: application/json
Authorization: "Bearer 1234567812345678123456781234567"
Authorization: Bearer 12345678123456781234567812345678

### Delete the Short URL

POST http://127.0.0.1:8080/api/delete HTTP/1.1
content-type: application/json
Authorization: "Bearer 1234567812345678123456781234567"
Authorization: Bearer 12345678123456781234567812345678

{
"long": "https://google.com",
Expand Down

0 comments on commit 20fc98e

Please sign in to comment.