{"id":20410308,"url":"https://github.com/kuadrant/api-petstore","last_synced_at":"2025-09-24T04:31:32.281Z","repository":{"id":220165124,"uuid":"716077423","full_name":"Kuadrant/api-petstore","owner":"Kuadrant","description":null,"archived":true,"fork":false,"pushed_at":"2024-01-31T14:49:21.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T02:44:33.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kuadrant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-08T12:10:05.000Z","updated_at":"2024-12-17T15:03:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"452213a5-ac2e-4899-bf17-19e87e9a7e74","html_url":"https://github.com/Kuadrant/api-petstore","commit_stats":null,"previous_names":["kuadrant/api-petstore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kuadrant/api-petstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuadrant%2Fapi-petstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuadrant%2Fapi-petstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuadrant%2Fapi-petstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuadrant%2Fapi-petstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kuadrant","download_url":"https://codeload.github.com/Kuadrant/api-petstore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kuadrant%2Fapi-petstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276694561,"owners_count":25687767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-24T02:00:09.776Z","response_time":97,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T05:45:39.242Z","updated_at":"2025-09-24T04:31:32.259Z","avatar_url":"https://github.com/Kuadrant.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Petstore - API Impl + OAS Spec\n\n## Build\n\n```bash\n# Multiarch with buildx\ndocker buildx create --name mybuilder --use\n\ndocker buildx inspect --bootstrap\n\ndocker buildx build --platform linux/amd64,linux/arm64 -t quay.io/kuadrant/petstore3:1.0.x --push .\n# also update resources/app.yaml\n```\n\n### Local build\n```bash\ndocker buildx build --load --platform linux/arm64 -t quay.io/kuadrant/petstore3:1.0.x .\n```\n\n## Run\n\n```bash\ndocker run --name swaggerapi-petstore3 -p 8080:8080 quay.io/kuadrant/petstore3:1.0.x\n```\n\n\n## OAS Spec\n\nHere:\n\n`openapi.yaml`\n\n## Deploy\n\n```bash\nkubectl apply -f resources/app.yaml\n\nkubectl wait --namespace=default --for=condition=available --timeout=300s deployment/petstore\n\nkuadrantctl generate gatewayapi httproute --oas openapi.yaml | kubectl apply -f -\n\nkuadrantctl generate kuadrant ratelimitpolicy --oas openapi.yaml | kubectl apply -f -\n\necho \"Petstore API: https://$(kubectl get httproute petstore -n default -o jsonpath='{.spec.hostnames[0]}')\" \n```\n\n## Creating the ApplicationSet \u0026 placement resource in ArgoCD\n\n```bash\nkubectl -n argocd apply -f argocd/\n```\n\n## Scaling up the ApplicationSet to 2 clusters\n\nThis actually does 2 things:\n\n* adds the petstore-region-us managedclusterset to the clusterSets list\n* sets the numberOfClusters to 2\n\n```bash\nkubectl patch placement petstore -n argocd --type='json' -p='[{\"op\": \"add\", \"path\": \"/spec/clusterSets/-\", \"value\": \"petstore-region-us\"}, {\"op\": \"replace\", \"path\": \"/spec/numberOfClusters\", \"value\": 2}]'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuadrant%2Fapi-petstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuadrant%2Fapi-petstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuadrant%2Fapi-petstore/lists"}