{"openapi":"3.1.0","info":{"title":"Ordaya API","version":"1.1.0","description":"Private-test API for public catalog data. It does not accept personal Ordaya records."},"servers":[{"url":"https://api.ordaya.eu"}],"tags":[{"name":"System"},{"name":"Series"},{"name":"Movies"},{"name":"Recipes"},{"name":"Products"},{"name":"Administration"}],"components":{"securitySchemes":{"ClientToken":{"type":"apiKey","in":"header","name":"X-Ordaya-Client-Token"},"AdminToken":{"type":"apiKey","in":"header","name":"X-Ordaya-Admin-Token"}},"schemas":{"PageMetadata":{"type":"object","required":["limit","nextCursor"],"properties":{"limit":{"type":"integer"},"nextCursor":{"type":["string","null"]}}},"ErrorEnvelope":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","requestId","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"retryable":{"type":"boolean"},"retryAfterSeconds":{"type":"integer","minimum":1},"fields":{"type":"array","items":{"type":"string"}}}}}}}},"paths":{"/v1/health/live":{"get":{"tags":["System"],"summary":"Process liveness","responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/health/ready":{"get":{"tags":["System"],"summary":"Database readiness","responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/meta":{"get":{"tags":["System"],"summary":"Service metadata","responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/openapi.json":{"get":{"tags":["System"],"summary":"OpenAPI contract","responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/client/status":{"get":{"tags":["System"],"summary":"Validate private-test client access","security":[{"ClientToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/series/search":{"get":{"tags":["Series"],"summary":"Search series","security":[{"ClientToken":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":160}},{"name":"source","in":"query","schema":{"type":"string","enum":["auto","tmdb","tvmaze"]}},{"name":"language","in":"query","schema":{"type":"string"}},{"name":"region","in":"query","schema":{"type":"string","minLength":2,"maxLength":2}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":500}}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/series/{source}/{id}":{"get":{"tags":["Series"],"summary":"Import series details","security":[{"ClientToken":[]}],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","enum":["tmdb","tvmaze"]}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/series/tmdb/{id}/metadata":{"get":{"tags":["Series"],"summary":"Refresh TMDB series metadata","security":[{"ClientToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/series/tvmaze/{id}/metadata":{"get":{"tags":["Series"],"summary":"Refresh TVmaze series metadata","security":[{"ClientToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/movies/search":{"get":{"tags":["Movies"],"summary":"Search movies","security":[{"ClientToken":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":160}},{"name":"year","in":"query","schema":{"type":"integer","minimum":1880,"maximum":2200}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":500}}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/movies/discover":{"get":{"tags":["Movies"],"summary":"Discover current movies","security":[{"ClientToken":[]}],"parameters":[{"name":"kind","in":"query","required":true,"schema":{"type":"string","enum":["nowPlaying","upcoming"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":500}}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/movies/{id}":{"get":{"tags":["Movies"],"summary":"Import movie details","security":[{"ClientToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/recipes/search":{"get":{"tags":["Recipes"],"summary":"Search meals or cocktails","security":[{"ClientToken":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":160}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","enum":["meal","cocktail"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":500}}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/products/{barcode}":{"get":{"tags":["Products"],"summary":"Look up a product","security":[{"ClientToken":[]}],"parameters":[{"name":"barcode","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{6,18}$"}}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/summary":{"get":{"tags":["Administration"],"summary":"Dashboard metrics and alerts","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/cache":{"get":{"tags":["Administration"],"summary":"Browse cache entries","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/cache/refresh":{"post":{"tags":["Administration"],"summary":"Schedule a cache refresh","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/content":{"get":{"tags":["Administration"],"summary":"Browse managed content","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["Administration"],"summary":"Create or update managed content","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/content/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"delete":{"tags":["Administration"],"summary":"Move managed content to trash","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/content/{id}/restore":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"tags":["Administration"],"summary":"Restore deleted managed content","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/content/{id}/versions":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"tags":["Administration"],"summary":"List managed content versions","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/content/{id}/versions/{version}/restore":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"post":{"tags":["Administration"],"summary":"Restore a previous content version","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/audit":{"get":{"tags":["Administration"],"summary":"Browse administrative audit events","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/providers/{provider}":{"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","maxLength":40}}],"put":{"tags":["Administration"],"summary":"Update provider policy and budgets","security":[{"AdminToken":[]}],"responses":{"200":{"description":"Catalog result","headers":{"ETag":{"schema":{"type":"string"}},"X-Ordaya-Cache":{"schema":{"type":"string","enum":["fresh","stale","fallback","miss"]}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"304":{"description":"The cached representation is still current"},"400":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Structured Ordaya error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}}}