Created
November 6, 2020 22:01
Star
You must be signed in to star a gist
Requests for the Automation API Pulumi over HTTP example
This file contains 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 characters
{ | |
"info": { | |
"_postman_id": "c2accb64-9814-4d66-85c8-389413cc012e", | |
"name": "Automation API - infrastructure over HTTP", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Update hello website", | |
"request": { | |
"method": "PUT", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"id\":\"hello\",\"content\":\"hello updated world!\\n\"}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "localhost:1337/sites/hello", | |
"host": [ | |
"localhost" | |
], | |
"port": "1337", | |
"path": [ | |
"sites", | |
"hello" | |
], | |
"query": [ | |
{ | |
"key": "", | |
"value": null, | |
"disabled": true | |
} | |
] | |
}, | |
"description": "This request updates the hello website" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create hello website", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "" | |
}, | |
"description": "Creates hello website/S3 bucket and adds content" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Create bye website", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"id\":\"bye\",\"content\":\"good bye world\\n\"}" | |
}, | |
"url": { | |
"raw": "http://localhost:1337/sites", | |
"protocol": "http", | |
"host": [ | |
"localhost" | |
], | |
"port": "1337", | |
"path": [ | |
"sites" | |
] | |
}, | |
"description": "Creates bye bucket and adds content" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get response from bye website", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "" | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Get response from hi website", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "" | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "List sites", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "localhost:1337/sites", | |
"host": [ | |
"localhost" | |
], | |
"port": "1337", | |
"path": [ | |
"sites" | |
] | |
}, | |
"description": "List websites/S3 buckets" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "Delete bye website", | |
"request": { | |
"method": "DELETE", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"url": { | |
"raw": "localhost:1337/sites/bye", | |
"host": [ | |
"localhost" | |
], | |
"port": "1337", | |
"path": [ | |
"sites", | |
"bye" | |
] | |
}, | |
"description": "Deletes bye website/S3 bucket" | |
}, | |
"response": [] | |
} | |
], | |
"protocolProfileBehavior": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment