{"id":21712270,"url":"https://github.com/ashutoshsahoo/order-service","last_synced_at":"2026-04-29T20:34:14.969Z","repository":{"id":131092412,"uuid":"272449481","full_name":"ashutoshsahoo/order-service","owner":"ashutoshsahoo","description":"Order service based on GraphQL implementation ","archived":false,"fork":false,"pushed_at":"2020-06-15T17:01:40.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T02:50:25.602Z","etag":null,"topics":["gradle","graphql","graphql-java","graphql-spring-boot","graphql-spring-boot-security","graphql-spring-boot-starter","graphql-spring-security","java-11","jwt","jwt-token","lombok","spring-security","spring-security-jwt"],"latest_commit_sha":null,"homepage":null,"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/ashutoshsahoo.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":"2020-06-15T13:42:15.000Z","updated_at":"2020-06-15T17:01:43.000Z","dependencies_parsed_at":"2023-03-10T16:55:51.849Z","dependency_job_id":null,"html_url":"https://github.com/ashutoshsahoo/order-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashutoshsahoo/order-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Forder-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Forder-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Forder-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Forder-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashutoshsahoo","download_url":"https://codeload.github.com/ashutoshsahoo/order-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Forder-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["gradle","graphql","graphql-java","graphql-spring-boot","graphql-spring-boot-security","graphql-spring-boot-starter","graphql-spring-security","java-11","jwt","jwt-token","lombok","spring-security","spring-security-jwt"],"created_at":"2024-11-25T23:36:33.589Z","updated_at":"2026-04-29T20:34:14.955Z","avatar_url":"https://github.com/ashutoshsahoo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Order Service\n\n## Signup\n\n```graphql\nmutation($request: SignupRequest!) {\n  signup(request: $request) {\n    username\n    email\n    roles\n  }\n}\n```\n\nand query variable\n\n```graphql\n{\n  \"request\": {\n    \"username\": \"ashutosh\",\n    \"password\": \"ashu@123\",\n    \"email\": \"ashu@email.com\"\n  }\n}\n```\n\n\n## Signin\n\n```graphql\nmutation($request: LoginRequest!){\n  login(request: $request){\n    token\n    username\n    roles\n  }\n}\n```\n\nand query variable\n\n```graphql\n{\n  \"request\": {\n    \"username\": \"ashutosh\",\n    \"password\": \"ashu@123\"\n  }\n}\n```\nUse the response token to add into Authorization header for all the following requests.\n\n## Create product\n\n```graphql\nmutation($product: ProductInput!) {\n  createProduct(product: $product) {\n    id\n    name\n  }\n}\n```\n\nand query variable\n\n```graphql\n{\n  \"product\": {\n    \"id\": \"1\",\n    \"name\": \"samsung tv\",\n    \"description\": \"Its a good tv\",\n    \"price\": \"20000\"\n  }\n}\n```\n\n## Query product by id\n\n```graphql\nquery {\n  productById(id: \"1\") {\n    id\n    name\n  }\n}\n```\n\n## Query customer by id\n\n```graphql\nquery {\n  customerById(id: \"1\") {\n    id\n    name\n    orders {\n      quantity\n      id\n      product {\n        id\n        name\n      }\n    }\n  }\n}\n```\n\n## Create order\n\n```graphql\nmutation($order: CreateOrderInput!) {\n  createOrder(order: $order) {\n    id\n    customer {\n      name\n    }\n    product {\n      name\n      description\n      price\n    }\n    quantity\n    status\n  }\n}\n```\n\nand query variable\n\n```graphql\n{\n  \"order\": {\n   \"customerId\": \"1\",\n    \"productId\": \"1\",\n    \"quantity\": 3\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshsahoo%2Forder-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashutoshsahoo%2Forder-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshsahoo%2Forder-service/lists"}