A Sceptre resolver to make requests from REST API endpoints
Project description
sceptre-request-resolver
A Sceptre resolver to make requests from REST API endpoints.
Motivation
There are some pretty useful REST API endpoints on the internet. The endpoints can return lots of different types of data, typically in JSON format. This simple resolver can retrieve that data and pass it to Sceptre parameters or scepter_user_data parameters.
Installation
To install directly from PyPI
pip install sceptre-request-resolver
To install from this git repo
pip install git+https://github.com/Sceptre/sceptre-request-resolver.git
Usage/Examples
parameters|sceptre_user_data:
<name>: !request <API ENDPOINT>
parameters|sceptre_user_data:
<name>: !request
url: <API ENDPOINT>
Note: This resolver always returns a string.
Example
Simple request:
parameters:
wisdom: !request 'https://ron-swanson-quotes.herokuapp.com/v2/quotes'
parameters:
wisdom: !request
url: https://ron-swanson-quotes.herokuapp.com/v2/quotes
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sceptre_request_resolver-0.3.0.tar.gz
.
File metadata
- Download URL: sceptre_request_resolver-0.3.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.1 Linux/5.15.0-1030-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c15b0657c2983ba40f57cbb7cb24144bc580f0505e1c64b7a349b955133a7189 |
|
MD5 | 1e365ac35073db48d4eacf04dd012a24 |
|
BLAKE2b-256 | 61b55690fb71cc628f9ba50a033916bdd80253a730418951ecbdd049a41bbed1 |
File details
Details for the file sceptre_request_resolver-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: sceptre_request_resolver-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.1 Linux/5.15.0-1030-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1434848cce342ec086b091313f40ad4619a5af91c899d0cf673b42e2f6714c8 |
|
MD5 | d16009f69dc0c18c7ff6ff8060b19927 |
|
BLAKE2b-256 | 4ec4ca916e7b7d4994b0ed5bc77bcdcd2cd72873506bc5ec4b79432da8a1306d |