{"__v":0,"_id":"588f722cbcace50f0052ba32","category":{"version":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","_id":"588f722bbcace50f0052b9e6","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-02-25T18:09:36.891Z","from_sync":false,"order":4,"slug":"dashboard-api","title":"Dashboard API"},"parentDoc":null,"project":"565f5fa26bafd40d0030a064","user":"565f3941ea46251700972783","version":{"__v":1,"_id":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","createdAt":"2017-01-30T17:04:43.410Z","releaseDate":"2017-01-30T17:04:43.410Z","categories":["588f722bbcace50f0052b9e2","588f722bbcace50f0052b9e3","588f722bbcace50f0052b9e4","588f722bbcace50f0052b9e5","588f722bbcace50f0052b9e6","588f722bbcace50f0052b9e7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"5.3.0","version":"5.3.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-12T23:05:05.847Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -b cookies.txt -c cookies.txt -H \"Content-Type: application/json\" -X GET \"http://api.nanoscale.io/apis/13/environments/9\"","language":"curl"}]},"method":"get","results":{"codes":[{"status":200,"language":"json","code":"{\n    \"environment\": {\n        \"api_id\": 13,\n        \"id\": 9,\n        \"name\": \"Dev\",\n        \"description\": \"dev\",\n        \"data\": {\n            \"mockEventsUrl\": \"https://mocks.nanoscaleapi.io/v1/events/\"\n        },\n        \"session_name\": \"_dev_nanoscalesamples\",\n        \"session_auth_key\": \"3442345345435w\",\n        \"session_encryption_key\": \"\",\n        \"session_auth_key_rotate\": \"\",\n        \"session_encryption_key_rotate\": \"\",\n        \"show_javascript_errors\": false\n    }\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"56be6761be55991700c3ca32","ref":"","in":"path","required":true,"desc":"The environment's id","default":"","type":"string","name":"id"}],"url":"/environments/:id"},"isReference":true,"order":22,"body":"Calling the `environments/:id` endpoint will return the full `environment` JSON object.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"key\",\n    \"h-1\": \"type\",\n    \"h-2\": \"description\",\n    \"0-0\": \"api_id\",\n    \"1-0\": \"id\",\n    \"2-0\": \"name\",\n    \"3-0\": \"description\",\n    \"4-0\": \"data\",\n    \"5-0\": \"data/mockEventsUrl\",\n    \"6-0\": \"session_name\",\n    \"7-0\": \"session_auth_key\",\n    \"8-0\": \"session_encryption_key\",\n    \"9-0\": \"session_auth_key_rotate\",\n    \"10-0\": \"session_encryption_key_rotate\",\n    \"11-0\": \"show_javascript_errors\",\n    \"0-1\": \"`number`\",\n    \"1-1\": \"`number`\",\n    \"2-1\": \"`string`\",\n    \"3-1\": \"`string`\",\n    \"4-1\": \"`object`\",\n    \"5-1\": \"`string`\",\n    \"6-1\": \"`string`\",\n    \"7-1\": \"`string`\",\n    \"8-1\": \"`string`\",\n    \"9-1\": \"`string`\",\n    \"10-1\": \"`string`\",\n    \"11-1\": \"`boolean`\",\n    \"0-2\": \"The API identifier.\",\n    \"1-2\": \"The environment identifier.\",\n    \"2-2\": \"The name of the environment.\",\n    \"3-2\": \"The description of the environment.\",\n    \"4-2\": \"Environment specific data that pertains to the environment. These values would overwrite the values of a remote endpoint's 'data' (i.e. if you want to have a different URL in a specific environment for a remote endpoint than what is specified on the remote_endpoint itself).\",\n    \"5-2\": \"TODO\",\n    \"6-2\": \"The name of the cookie used to store admin app sessions.\",\n    \"7-2\": \"An encryption key that is used for session authentication by the gorilla toolkit.\",\n    \"8-2\": \"An encryption key that is used to encrypt the contents of the session cookie.\",\n    \"9-2\": \"Used for 'key rotation' (i.e. to create a new session_auth_key, you need to store the old session_auth_key in session_auth_key_rotate so that you can authenticate the existing cookie that the user sends you before you begin using the new auth key).\",\n    \"10-2\": \"Used for 'key rotation'  (i.e. if you want to create a new session_encryption_key, you need to store the old session_encryption_key in session_encryption_key_rotate so that you can decrypt the existing cookie before you re-encrypt it with the new session_encryption_key).\",\n    \"11-2\": \"Indicates whether or not to return Javascript errors that occur within a proxy endpoint with the error response, or whether to suppress them for security purposes.\\n\\nTypically you would only want this turned on in a development environment.\"\n  },\n  \"cols\": 3,\n  \"rows\": 12\n}\n[/block]","excerpt":"","slug":"environmentsid","type":"endpoint","title":"/environments/:id"}

get/environments/:id


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
string
The environment's id

Examples


Result Format


Documentation

Calling the `environments/:id` endpoint will return the full `environment` JSON object. [block:parameters] { "data": { "h-0": "key", "h-1": "type", "h-2": "description", "0-0": "api_id", "1-0": "id", "2-0": "name", "3-0": "description", "4-0": "data", "5-0": "data/mockEventsUrl", "6-0": "session_name", "7-0": "session_auth_key", "8-0": "session_encryption_key", "9-0": "session_auth_key_rotate", "10-0": "session_encryption_key_rotate", "11-0": "show_javascript_errors", "0-1": "`number`", "1-1": "`number`", "2-1": "`string`", "3-1": "`string`", "4-1": "`object`", "5-1": "`string`", "6-1": "`string`", "7-1": "`string`", "8-1": "`string`", "9-1": "`string`", "10-1": "`string`", "11-1": "`boolean`", "0-2": "The API identifier.", "1-2": "The environment identifier.", "2-2": "The name of the environment.", "3-2": "The description of the environment.", "4-2": "Environment specific data that pertains to the environment. These values would overwrite the values of a remote endpoint's 'data' (i.e. if you want to have a different URL in a specific environment for a remote endpoint than what is specified on the remote_endpoint itself).", "5-2": "TODO", "6-2": "The name of the cookie used to store admin app sessions.", "7-2": "An encryption key that is used for session authentication by the gorilla toolkit.", "8-2": "An encryption key that is used to encrypt the contents of the session cookie.", "9-2": "Used for 'key rotation' (i.e. to create a new session_auth_key, you need to store the old session_auth_key in session_auth_key_rotate so that you can authenticate the existing cookie that the user sends you before you begin using the new auth key).", "10-2": "Used for 'key rotation' (i.e. if you want to create a new session_encryption_key, you need to store the old session_encryption_key in session_encryption_key_rotate so that you can decrypt the existing cookie before you re-encrypt it with the new session_encryption_key).", "11-2": "Indicates whether or not to return Javascript errors that occur within a proxy endpoint with the error response, or whether to suppress them for security purposes.\n\nTypically you would only want this turned on in a development environment." }, "cols": 3, "rows": 12 } [/block]