Created
December 2, 2018 00:25
-
-
Save d11z/ec4e66ea6138bc13f6c83b189b3ab51a to your computer and use it in GitHub Desktop.
Revisions
-
d11z created this gist
Dec 2, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ @host = http://localhost:8080/api ### # @name register POST {{host}}/login Content-Type: application/json { "username": "tester", "password": "password" } ### # @name login POST {{host}}/login Content-Type: application/json { "username": "tester", "password": "password" } ### # @name newPost @token = {{login.response.body.token}} POST {{host}}/posts Authorization: Bearer {{token}} Content-Type: application/json { "title": "example post", "url": "http://google.com", "category": "test" } ### # @name getPosts GET {{host}}/posts ###