Introduction

This site is an overview of the API calls that can be made to get information about Rochester City Art.

All requests start with the url http://api.roccity.art. An HTTPS version with user keys is being built.

All end point responses have a JSON format with the initial keys of "Status", which is either "Success" or "Error", and "Results" which is either an empty list or a series of requested values.


Get the locations for all the art

GET

api.roccity.art/locations

Headers

None.

Responses

200 - "Results" will be a list of values with the art's latitude, longitude, and short code.

Example

curl -X GET "http://api.roccity.art/locations"


Load images of the art

GET

api.roccity.art/images/{shortcode}

Headers

None.

Responses

200 - JPEG image of the specified art

curl -X GET "http://api.roccity.art/images/f6d086c477"


Count the amount of art in each neighborhood

GET

api.roccity.art/count

Headers

None.

Responses

200 - List of neighborhoods and a count of art in each of them

curl -X GET "http://api.roccity.art/count"