REST API: Lookups/TrailImages

Returns all of the approved photos associated with a list of trail IDs.

Resource URI

/Lookups/TrailImages

Resource Properties

ParameterFormatDescriptionAllows Null
trails string comma-separated list of trail IDs no

Error Responses

HTTP GET

submit a comma-separated list of trail IDs, returns all of the approved photos associated with those trails. Intended for City and State pages that need more photos to fill out the gallery.

JSON Request:

JSON Response:

[
{
"trailID": 6016038,
"imageID": 203030,
"mimeType": "image/jpeg",
"caption": " ",
"title": "tunel",
"displayName": "kmishooter",
"lat": "38.94282222222222",
"lon": "-77.11546388888888",
"detailUrl": "capital-crescent-trail",
"submitterAcctID": 12697462,
"trailStates": "DC, MD",
"postDate": "2022-02-02 23:56:14Z",
"trailName": "Capital Crescent Trail"
},
{
"trailID": 6016038,
"imageID": 203029,
"mimeType": "image/jpeg",
"caption": " ",
"title": "Capital Crescent Trail",
"displayName": "kmishooter",
"lat": "38.92403888888889",
"lon": "-77.10706388888889",
"detailUrl": "capital-crescent-trail",
"submitterAcctID": 12697462,
"trailStates": "DC, MD",
"postDate": "2022-02-02 23:55:25Z",
"trailName": "Capital Crescent Trail"
},
{
"trailID": 6016038,
"imageID": 193397,
"mimeType": "image/jpeg",
"caption": "Entry to trail at Norton and Potomac, NW, DC ",
"title": "Norton and Potomac NW ",
"displayName": "cyradaria",
"lat": "0",
"lon": "0",
"detailUrl": "capital-crescent-trail",
"submitterAcctID": 12275123,
"trailStates": "DC, MD",
"postDate": "2021-06-30 19:21:33Z",
"trailName": "Capital Crescent Trail"
},
{
"trailID": 6016038,
"imageID": 193398,
"mimeType": "image/jpeg",
"caption": "Path to Crescent Trail, Norton St. NW, at Potomac - Palisades ",
"title": "Norton Street NW ",
"displayName": "cyradaria",
"lat": "0",
"lon": "0",
"detailUrl": "capital-crescent-trail",
"submitterAcctID": 12275123,
"trailStates": "DC, MD",
"postDate": "2021-06-30 19:22:42Z",
"trailName": "Capital Crescent Trail"
},
etc

XML Request:

XML Response:

HTTP POST

n/a

JSON Request:

JSON Response:

XML Request:

XML Response:

HTTP PUT

n/a

JSON Request:

JSON Response:

XML Request:

XML Response:

HTTP DELETE

n/a

JSON Request:

JSON Response:

XML Request:

XML Response:


REST API: Lookups/TrailImages Set

n/a

Resource URI

Set Filters

ParameterFormatDescriptionAllows Null
xxx xxx xxx xxx

HTTP GET

n/a

JSON Request:

JSON Response:

XML Request:

XML Response:

HTTP POST

n/a

JSON Request:

JSON Response:

XML Request:

XML Response:

HTTP PUT

n/a

JSON Request:

JSON Response:

XML Request:

XML Response:

HTTP DELETE

n/a

JSON Request:

JSON Response:

XML Request:

XML Response: