Get Target
Get a Crafter Deployer target.
Resource Information
This service uses the deployer application on port 9191 by default. To see a list of default ports click here
The context for this API is /
.
HTTP Verb
|
GET
|
URL
|
/api/1/target/get/:env/:site_name |
Response Formats
|
JSON |
Parameters
Name
|
Type
|
Required
|
Description
|
---|---|---|---|
env
|
String
|
✓
|
The target’s environment (e.g. dev).
|
site_name
|
String
|
✓
|
The target’s site name (e.g. mysite).
|
Example
Request
GET .../api/1/target/get/dev/mysite
Response
Status 200 OK
{
"env": "dev",
"siteName": "mysite",
"id": "mysite-dev",
"load_date" : "2017-01-26T10:00:1.234-05:00"
}
Responses
Status
|
Location
|
Response Body
|
---|---|---|
200
|
.../target/get/:target_id |
See example above.
|
404
|
{ "message" : "Target not found" } |
|
500
|
{ "message" : "Internal server error" } |