{"id":40497175,"url":"https://github.com/ymonnier/docker-restful-java","last_synced_at":"2026-01-20T19:00:09.035Z","repository":{"id":214905560,"uuid":"80341759","full_name":"YMonnier/docker-restful-java","owner":"YMonnier","description":"Simple Restful API with Jersey-Hibernate, AngularJS Client and Websocket Tyrus","archived":false,"fork":false,"pushed_at":"2017-04-03T13:02:58.000Z","size":637,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T07:27:10.169Z","etag":null,"topics":["angularjs","database","docker","docker-compose","hibernate","java","jersey","rest-api","tyrus","websocket"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YMonnier.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}},"created_at":"2017-01-29T11:12:42.000Z","updated_at":"2023-06-06T16:18:41.000Z","dependencies_parsed_at":"2023-12-31T23:06:54.671Z","dependency_job_id":"1498fc19-7487-4403-ac79-aed73fe8e361","html_url":"https://github.com/YMonnier/docker-restful-java","commit_stats":null,"previous_names":["ymonnier/docker-restful-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YMonnier/docker-restful-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMonnier%2Fdocker-restful-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMonnier%2Fdocker-restful-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMonnier%2Fdocker-restful-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMonnier%2Fdocker-restful-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YMonnier","download_url":"https://codeload.github.com/YMonnier/docker-restful-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMonnier%2Fdocker-restful-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28609545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["angularjs","database","docker","docker-compose","hibernate","java","jersey","rest-api","tyrus","websocket"],"created_at":"2026-01-20T19:00:04.316Z","updated_at":"2026-01-20T19:00:08.934Z","avatar_url":"https://github.com/YMonnier.png","language":"Java","readme":"# Simple API Restful Server \u0026 AngularsJS Client\n\nDeployment with [Docker](https://www.docker.com).\n\n* Server Restful\n* Websocket\n* AngularsJS Client\n\n## API Restful\n\nJava project using [Jersey](https://jersey.java.net), [Grizzly](https://grizzly.java.net) and [Hibernate](http://hibernate.org)\n\n#### Authentication\nHEADER application/json\n\n| URI path       | Resource class           | HTTP methods | Notes                                                                                                |\n|----------------|--------------------------|--------------|------------------------------------------------------------------------------------------------------|\n| /auth/register | AuthenticationController | POST         | {     \"nickname\": \"string\",     \"address\": \"string\",     \"password\": \"string\",     \"role\": integer } |\n| /auth/login    | AuthenticationController | POST         | {    \"nickname\": \"string\",    \"password\":\"string\"}                                                   |\n\n\n#### Users\nHEADER application/json\n\nHEADER authorization\n\nauthorization token is given with the `auth/login` action.\n\n| URI path    | Resource class  | HTTP methods | Notes                                       |\n|-------------|-----------------|--------------|---------------------------------------------|\n| /users      | UsersController | GET          | Get all users.                              |\n| /users/{id} | UsersController | GET          | Get a specific user depending its ID.       |\n| /user/{id}  | UsersController | PUT          | {\"nickname\": \"string\", \"address\": \"string\"} |\n| /users/{id} | UsersController | DELETE       | Delete a specific user depending its ID.    |\n\n\n#### Channels\n\nHEADER application/json\n\nHEADER authorization\n\nauthorization token is given with the `auth/login` action.\n\n| URI path   | Resource class     | HTTP methods | Notes                                    |\n|------------|--------------------|--------------|------------------------------------------|\n| /channels  | ChannelsController | GET          | Get all channels.                        |\n| /channels | ChannelsController | POST         | {\"name\": \"string\", \"user_id\": \"integer\"} |\n\n## Installation\n\n### With Docker\n\n`docker-compose up -d`\n\n\nThen run the script shell `run.sh` allowing to change the ip into the **client site** to access to server container from the host.\n\n `./run.sh $(docker-machine ip)` or `./run.sh [your docker bridge ip]`\n\nNow you can test the server access by using `curl`\n\n```\ncurl -H 'Content-Type: application/json' \\\n     -X POST -d '{\"nickname\": \"YMonnier\", \"address\": \"2253–2331 Alder St, Vancouver BC, Canada\", \"password\": \"abcd123456\", \"role\": 0}' \\\n     $(docker-machine ip):8080/littleapp/auth/register\n\nResponse:\n{\n  \"id\": 1,\n  \"nickname\": \"ymonnier\",\n  \"password\": \"$2a$10$ZdU9nA9.efNEFe7X4tjpL.0VA2I5JRdvXi7/DfQMMf4tk1HXvHLOK\",\n  \"address\": \"10 street...\",\n  \"token\": null,\n  \"channels\": [],\n  \"role\": 0\n}\n```\n\nor you can use the client angular...\n\nRun the client: `cd web/ \u0026\u0026 npm install \u0026\u0026 bower install \u0026\u0026 grunt serve` or execute `web/dist/index.html`\n\n\nContributor\n------------\n* [@YMonnier](https://github.com/YMonnier)\n\nLicense\n-------\ndocker-restful-java is available under the MIT license. See the [LICENSE](https://github.com/YMonnier/docker-restful-java/blob/master/LICENSE) file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymonnier%2Fdocker-restful-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymonnier%2Fdocker-restful-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymonnier%2Fdocker-restful-java/lists"}