{"id":21528226,"url":"https://github.com/znsio/specmatic-order-graphql-consumer-java","last_synced_at":"2025-10-14T01:33:44.488Z","repository":{"id":249668151,"uuid":"829412584","full_name":"znsio/specmatic-order-graphql-consumer-java","owner":"znsio","description":"Sample project of a Spring Boot REST API that consumes a GraphQL service","archived":false,"fork":false,"pushed_at":"2025-04-08T14:14:29.000Z","size":7273,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-08T15:26:52.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/znsio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-07-16T11:30:26.000Z","updated_at":"2025-04-08T14:14:35.000Z","dependencies_parsed_at":"2025-03-14T10:45:35.403Z","dependency_job_id":null,"html_url":"https://github.com/znsio/specmatic-order-graphql-consumer-java","commit_stats":null,"previous_names":["znsio/specmatic-order-graphql-consumer-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/znsio/specmatic-order-graphql-consumer-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znsio%2Fspecmatic-order-graphql-consumer-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znsio%2Fspecmatic-order-graphql-consumer-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znsio%2Fspecmatic-order-graphql-consumer-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znsio%2Fspecmatic-order-graphql-consumer-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znsio","download_url":"https://codeload.github.com/znsio/specmatic-order-graphql-consumer-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znsio%2Fspecmatic-order-graphql-consumer-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017499,"owners_count":26086084,"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-10-13T02:00:06.723Z","response_time":61,"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-24T01:52:16.767Z","updated_at":"2025-10-14T01:33:44.467Z","avatar_url":"https://github.com/znsio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Diagram](./GraphQLStubbing.gif)\n\n# Specmatic UI project for GraphQL demo\n\n## Run the tests\n\n1. Using gradle -\n    ```shell\n    ./gradlew clean test\n    ```\n2. Using docker -\n   - Start Docker Desktop\n   - Start the graphql service stub using\n     ```shell\n     docker run -v \"$PWD/specmatic.yml:/usr/src/app/specmatic.yml\" -v \"$PWD/src/test/resources/specmatic/graphql/examples:/usr/src/app/examples\" -p 8080:8080 znsio/specmatic-graphql virtualize --port=8080 --examples=examples\n     ```\n   - Run the application - `./gradlew bootRun`\n   - Run the tests -\n     ```shell\n     docker run --network host -v \"$PWD/specmatic.yml:/usr/src/app/specmatic.yml\" -v \"$PWD/build/reports/specmatic:/usr/src/app/build/reports/specmatic\"  znsio/specmatic test --port=8070 --host=host.docker.internal\n     ```\n\nLook at the `ContractTest` class to see how the GraphQL dependency has been stubbed out.\n\n## Start the application\n\n1. Checkout the Order API project from [here](https://github.com/znsio/specmatic-order-api-java), and start it up using the instructions in it's README. \n2. Checkout the BFF project from [here](https://github.com/znsio/specmatic-order-bff-graphql-java), and start it up using the instructions in it's README.\n3. Execute this command:\n\n```shell\n./gradlew bootRun\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznsio%2Fspecmatic-order-graphql-consumer-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznsio%2Fspecmatic-order-graphql-consumer-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznsio%2Fspecmatic-order-graphql-consumer-java/lists"}