{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/dev-tools:docker-dvp/get-namespaces":{"get":{"operationId":"dev_tools_docker_dvp_get_namespaces","summary":"Get namespaces and repos","description":"GET /","tags":["dev-tools"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/dev-tools:docker-dvp/get-namespace":{"get":{"operationId":"dev_tools_docker_dvp_get_namespace","summary":"Get namespace","description":"GET /namespaces/{namespace}","tags":["dev-tools"],"parameters":[{"name":"namespace","in":"query","required":true,"description":"Namespace to fetch data for","schema":{"type":"string","description":"Namespace to fetch data for"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/dev-tools:docker-dvp/get-namespace-years":{"get":{"operationId":"dev_tools_docker_dvp_get_namespace_years","summary":"Get years with data","description":"GET /namespaces/{namespace}/pulls/exports/years","tags":["dev-tools"],"parameters":[{"name":"namespace","in":"query","required":true,"description":"Namespace to fetch data for","schema":{"type":"string","description":"Namespace to fetch data for"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/dev-tools:docker-dvp/get-namespace-timespans":{"get":{"operationId":"dev_tools_docker_dvp_get_namespace_timespans","summary":"Get timespans with data","description":"GET /namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}","tags":["dev-tools"],"parameters":[{"name":"namespace","in":"query","required":true,"description":"Namespace to fetch data for","schema":{"type":"string","description":"Namespace to fetch data for"}},{"name":"year","in":"query","required":true,"description":"Year to fetch data for","schema":{"type":"integer","description":"Year to fetch data for"}},{"name":"timespantype","in":"query","required":true,"description":"Type of timespan to fetch data for","schema":{"type":"string","enum":["months","weeks"],"description":"Type of timespan to fetch data for"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/dev-tools:docker-dvp/get-namespace-timespan-metadata":{"get":{"operationId":"dev_tools_docker_dvp_get_namespace_timespan_metadata","summary":"Get namespace metadata for timespan","description":"GET /namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}/{timespan}","tags":["dev-tools"],"parameters":[{"name":"namespace","in":"query","required":true,"description":"Namespace to fetch data for","schema":{"type":"string","description":"Namespace to fetch data for"}},{"name":"year","in":"query","required":true,"description":"Year to fetch data for","schema":{"type":"integer","description":"Year to fetch data for"}},{"name":"timespantype","in":"query","required":true,"description":"Type of timespan to fetch data for","schema":{"type":"string","enum":["months","weeks"],"description":"Type of timespan to fetch data for"}},{"name":"timespan","in":"query","required":true,"description":"Timespan to fetch data for","schema":{"type":"integer","description":"Timespan to fetch data for"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/dev-tools:docker-dvp/get-namespace-data-by-timespan":{"get":{"operationId":"dev_tools_docker_dvp_get_namespace_data_by_timespan","summary":"Get namespace data for timespan","description":"GET /namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}/{timespan}/{dataview}","tags":["dev-tools"],"parameters":[{"name":"namespace","in":"query","required":true,"description":"Namespace to fetch data for","schema":{"type":"string","description":"Namespace to fetch data for"}},{"name":"year","in":"query","required":true,"description":"Year to fetch data for","schema":{"type":"integer","description":"Year to fetch data for"}},{"name":"timespantype","in":"query","required":true,"description":"Type of timespan to fetch data for","schema":{"type":"string","enum":["months","weeks"],"description":"Type of timespan to fetch data for"}},{"name":"timespan","in":"query","required":true,"description":"Timespan to fetch data for","schema":{"type":"integer","description":"Timespan to fetch data for"}},{"name":"dataview","in":"query","required":true,"description":"Type of data to fetch","schema":{"type":"string","enum":["raw","summary","repo-summary"],"description":"Type of data to fetch"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/dev-tools:docker-dvp/post-users2-falogin":{"post":{"operationId":"dev_tools_docker_dvp_post_users2_falogin","summary":"Second factor authentication.","description":"POST /v2/users/2fa-login","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/dev-tools:docker-dvp/post-users-login":{"post":{"operationId":"dev_tools_docker_dvp_post_users_login","summary":"Create an authentication token","description":"POST /v2/users/login","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}