{"id":20645016,"url":"https://github.com/it-enduro/web-protocols","last_synced_at":"2025-07-13T12:04:03.108Z","repository":{"id":56742521,"uuid":"222095850","full_name":"IT-Enduro/web-protocols","owner":"IT-Enduro","description":"Examples of web protocols","archived":false,"fork":false,"pushed_at":"2024-11-27T09:22:32.000Z","size":689,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-27T09:31:24.717Z","etag":null,"topics":["graphql","grpc","java","restful","soap","spring-boot","spring-cloud-contract"],"latest_commit_sha":null,"homepage":"https://it-enduro.github.io/web-protocols/","language":"Kotlin","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/IT-Enduro.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":"2019-11-16T12:27:05.000Z","updated_at":"2024-11-27T09:21:38.000Z","dependencies_parsed_at":"2024-11-16T16:29:06.748Z","dependency_job_id":null,"html_url":"https://github.com/IT-Enduro/web-protocols","commit_stats":null,"previous_names":["it-enduro/web-protocols"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IT-Enduro%2Fweb-protocols","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IT-Enduro%2Fweb-protocols/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IT-Enduro%2Fweb-protocols/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IT-Enduro%2Fweb-protocols/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IT-Enduro","download_url":"https://codeload.github.com/IT-Enduro/web-protocols/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234339791,"owners_count":18816726,"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","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":["graphql","grpc","java","restful","soap","spring-boot","spring-cloud-contract"],"created_at":"2024-11-16T16:18:24.102Z","updated_at":"2025-07-13T12:04:03.101Z","avatar_url":"https://github.com/IT-Enduro.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/Romanow/web-protocols/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/Romanow/web-protocols/actions/workflows/build.yml)\n[![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC%20BY--NC--ND%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-nd/4.0/)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n\n# Протоколы обмена информацией\n\n## Сборка и запуск\n\n```shell\n# сборка\n$ ./gradlew clean build\n````\n\nДля запуска серверов требуется Postgres, запускаем через docker:\n\n```shell\n$ docker compose up -d\n```\n\nВ клиентских приложениях\nиспользуется [Spring Shell](https://docs.spring.io/spring-shell/docs/current/reference/htmlsingle/), поэтому запуск\nчерез `java -jar ...`. В клиенте доступны следующие команды:\n\n```log\nshell:\u003ehelp\n\nBuilt-In Commands\n       help: Display help about available commands\n       clear: Clear the shell screen.\n       quit, exit: Exit the shell.\n\nServer Command\n       find-by-id: Get server by Id\n       update: Update server by Id\n       create: Create server\n       delete: Delete server by Id\n       find-in-city: Get servers in city\n       find-all: Get all servers\n```\n\n### RESTful\n\nСервер:\n\n```shell\n$ ./gradlew restful:bootRun\n```\n\nДля просмотра API доступен [Swagger UI](http://localhost:8080/swagger-ui/index.html)\n\nКлиент:\n\n```shell\n$ java -jar rest-client/build/libs/rest-client.jar\n```\n\n### GraphQL\n\nПротокол [servers.graphqls](graphql/src/main/resources/graphql/servers.graphqls).\n\nСервер:\n\n```shell\n$ ./gradlew graphql:bootRun\n```\n\nДля навигации по API можно использовать [GraphiQL](http://localhost:8080/graphiql)ю\n\n### gRPC\n\nПротокол [ServerService.proto](grpc-protocol/src/main/proto/ServerService.proto).\n\nСервер:\n\n```shell\n$ ./gradlew grpc-server:bootRun\n```\n\nКлиент:\n\n```shell\n$ java -jar grpc-client/build/libs/grpc-client.jar\n```\n\n### SOAP\n\nСервер:\n\n```shell\n$ ./gradlew soap-server:bootRun\n```\n\nКлиент:\n\n```shell\n$ java -jar soap-client/build/libs/soap-client.jar\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fit-enduro%2Fweb-protocols","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fit-enduro%2Fweb-protocols","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fit-enduro%2Fweb-protocols/lists"}