From 517c543003cd0a99e8ea799713db148a382ea0b9 Mon Sep 17 00:00:00 2001 From: jeffnoehren Date: Wed, 6 Dec 2017 14:24:03 -0800 Subject: [PATCH] updating docs --- docs/providers/spotinst/guide/quick-start.md | 2 +- docs/providers/spotinst/guide/variables.md | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/providers/spotinst/guide/quick-start.md b/docs/providers/spotinst/guide/quick-start.md index b41630115..077ab90ad 100644 --- a/docs/providers/spotinst/guide/quick-start.md +++ b/docs/providers/spotinst/guide/quick-start.md @@ -48,7 +48,7 @@ cat ~/.spotinst/credentials **Note:** Once you have set up your Spotinst Credentials you will not need to do this again for each project - For more help please refer to the [Credentials](../credentials.md) link provided + For more help please refer to the [Credentials](./credentials.md) link provided ## Create a New Project From a Template *You can skip this step if you have already done this step in configuring your credentials* diff --git a/docs/providers/spotinst/guide/variables.md b/docs/providers/spotinst/guide/variables.md index 6ea930d97..a120acc09 100644 --- a/docs/providers/spotinst/guide/variables.md +++ b/docs/providers/spotinst/guide/variables.md @@ -35,6 +35,12 @@ To access your variables in your code you just need to put `process.env['{Your K ## URL Argument Variables -URL parameters are useful if you want to enter data that could change based on user actions like filling out a form or entering information into a database. +URL parameters can be use when a POST request is made to the endpoint of your function. -To access URL parameters in your code you just need to put `eq.query.{Your Parameter Name}` as needed +### 1. Node JS + +To access URL parameters in your NodeJS code you just need to put `event.query.['{Your Parameter Name}']` as needed + +### 2. Python + +To access URL parameters in your NodeJS code you just need to put `os.environ['{Your Parameter Name}']` as needed