GET
/visitors/{id}{server_url}/visitors/{id}
View the information of a visitor type with the matching ID.
None
Name | Data Type | Required/Optional | Description |
---|---|---|---|
id | Integer | Required | A unique identification number for the visitor instance (positive only) |
None
None
Code | Description |
---|---|
200 | Returns the parks object with the matching ID. If there are no visitors with the same ID, an empty object is returned. |
curl http://localhost:3000/visitors/1
{
"visitor_id": 1,
"visitor_type": "Island Hopper",
"habitat": "coastal and marine",
"travel_season": "summer",
"activities": "kayaking, snorkeling, wildlife watching",
"id": 1
}