# Proxy Photo Thumbnail GET https://photos.conventionphotography.com/api/proxy-image/{event}/{photo} ## Proxy Photo Thumbnail Proxies thumbnail images from the photo gallery system for display in order forms. ### Endpoint `GET https://convention.photos/api/proxy-image/{event}/{photo}` ### Description This endpoint acts as a proxy to fetch photo thumbnails from photos.conventionphotography.com, allowing the ordering system to display photo previews without CORS issues. ### Path Parameters - **event**: Event code (e.g., "ASDAR26") - **photo**: Photo identifier/number ### Response Returns the thumbnail image (JPEG/PNG) directly. ### Use Cases - Display photo thumbnails in order forms - Preview selected photos before ordering - Load images securely across domains ### Authentication No authentication required for public photo access. Reference: https://docs.convention.photos/api-reference/cps-api/convention-photos/proxy-photo-thumbnail ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: Convention Photography System (CPS) version: 1.0.0 paths: /api/proxy-image/{event}/{photo}: get: operationId: proxy-photo-thumbnail summary: Proxy Photo Thumbnail description: >- ## Proxy Photo Thumbnail Proxies thumbnail images from the photo gallery system for display in order forms. ### Endpoint `GET https://convention.photos/api/proxy-image/{event}/{photo}` ### Description This endpoint acts as a proxy to fetch photo thumbnails from photos.conventionphotography.com, allowing the ordering system to display photo previews without CORS issues. ### Path Parameters - **event**: Event code (e.g., "ASDAR26") - **photo**: Photo identifier/number ### Response Returns the thumbnail image (JPEG/PNG) directly. ### Use Cases - Display photo thumbnails in order forms - Preview selected photos before ordering - Load images securely across domains ### Authentication No authentication required for public photo access. tags: - subpackage_conventionPhotos parameters: - name: event in: path required: true schema: type: string - name: photo in: path required: true schema: type: string responses: '200': description: Photo thumbnail image content: application/json: schema: $ref: >- #/components/schemas/convention.photos_proxyPhotoThumbnail_Response_200 servers: - url: https://photos.conventionphotography.com - url: https://convention.photos components: schemas: convention.photos_proxyPhotoThumbnail_Response_200: type: object properties: {} description: Empty response body title: convention.photos_proxyPhotoThumbnail_Response_200 ``` ## SDK Code Examples ```python import requests url = "https://photos.conventionphotography.com/api/proxy-image/event/photo" response = requests.get(url) print(response.json()) ``` ```javascript const url = 'https://photos.conventionphotography.com/api/proxy-image/event/photo'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://photos.conventionphotography.com/api/proxy-image/event/photo" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://photos.conventionphotography.com/api/proxy-image/event/photo") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://photos.conventionphotography.com/api/proxy-image/event/photo") .asString(); ``` ```php request('GET', 'https://photos.conventionphotography.com/api/proxy-image/event/photo'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://photos.conventionphotography.com/api/proxy-image/event/photo"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://photos.conventionphotography.com/api/proxy-image/event/photo")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```