{"id":19120524,"url":"https://github.com/javers/organization-structure","last_synced_at":"2025-05-05T16:13:42.613Z","repository":{"id":43771953,"uuid":"47870990","full_name":"javers/organization-structure","owner":"javers","description":"Sample apllication demonstrating use of Javers-spring-boot-starter-mongo","archived":false,"fork":false,"pushed_at":"2019-08-21T15:36:24.000Z","size":182,"stargazers_count":11,"open_issues_count":0,"forks_count":16,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-19T10:27:43.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/javers.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}},"created_at":"2015-12-12T08:45:47.000Z","updated_at":"2023-06-28T04:27:54.000Z","dependencies_parsed_at":"2022-07-09T02:01:13.963Z","dependency_job_id":null,"html_url":"https://github.com/javers/organization-structure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javers%2Forganization-structure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javers%2Forganization-structure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javers%2Forganization-structure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javers%2Forganization-structure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javers","download_url":"https://codeload.github.com/javers/organization-structure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252531844,"owners_count":21763290,"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":[],"created_at":"2024-11-09T05:14:20.768Z","updated_at":"2025-05-05T16:13:42.568Z","avatar_url":"https://github.com/javers.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# organization-structure\nSample application demonstrating use of JaVers Spring Boot starters.\n\n## spring-boot-starter-data-mongodb\n\nTo start app execute (requires MongoDB (3.0.0+) running on port 27017):\n \n```\n./gradlew organization-structure-mongo:run\n```\n\nor run on H2:\n\n```\n./gradlew organization-structure-sql:run\n```\n\n## REST API\n\n### Application exposes REST interface:\n\n```\nhttp://localhost:8080/view/hierarchy\nhttp://localhost:8080/view/hierarchy/Hier_2015\nhttp://localhost:8080/view/persons\nhttp://localhost:8080/view/person/0\n```\n\n### Make some changes on Frodo\n\n```\nhttp://localhost:8080/audit/test\n```\n\n### Create new person:\n\n```\nPOST http://localhost:8080/view/person\n{\n\t\"id\": 101,\n\t\"firstName\": \"Yang\",\n\t\"lastName\": \"Huajie\",\n\t\"sex\": \"MALE\",\n\t\"salary\": 1000,\n\t\"position\": \"DEVELOPER\"\n}\n```\n\n### Update person:\n\n```\nPUT http://localhost:8080/view/person\n{\n\t\"id\": 101,\n\t\"firstName\": \"Yang\",\n\t\"lastName\": \"Huajie\",\n\t\"sex\": \"MALE\",\n\t\"salary\": 1022,\n\t\"position\": \"DEVELOPER\"\n}\n```\n\n### View audit data\n\n```\nhttp://localhost:8080/audit/persons\nhttp://localhost:8080/audit/person/0\n\nhttp://localhost:8080/audit/person/snapshots\nhttp://localhost:8080/audit/person/0/snapshots\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavers%2Forganization-structure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavers%2Forganization-structure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavers%2Forganization-structure/lists"}