{"id":21252623,"url":"https://github.com/jcasbin/casbin-spring-boot-example","last_synced_at":"2025-07-02T21:04:57.392Z","repository":{"id":59479079,"uuid":"537501970","full_name":"jcasbin/casbin-spring-boot-example","owner":"jcasbin","description":"Example for casbin-spring-boot-starter","archived":false,"fork":false,"pushed_at":"2025-03-01T11:42:20.000Z","size":74,"stargazers_count":12,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-02T21:03:53.800Z","etag":null,"topics":["abac","acl","auth","casbin","example","java","jcasbin","rbac","spring","spring-boot","springboot","starter"],"latest_commit_sha":null,"homepage":"https://github.com/jcasbin/casbin-spring-boot-starter","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/jcasbin.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-16T14:51:07.000Z","updated_at":"2025-06-21T01:44:32.000Z","dependencies_parsed_at":"2025-03-01T12:34:18.761Z","dependency_job_id":null,"html_url":"https://github.com/jcasbin/casbin-spring-boot-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jcasbin/casbin-spring-boot-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcasbin%2Fcasbin-spring-boot-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcasbin%2Fcasbin-spring-boot-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcasbin%2Fcasbin-spring-boot-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcasbin%2Fcasbin-spring-boot-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcasbin","download_url":"https://codeload.github.com/jcasbin/casbin-spring-boot-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcasbin%2Fcasbin-spring-boot-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263215288,"owners_count":23431893,"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":["abac","acl","auth","casbin","example","java","jcasbin","rbac","spring","spring-boot","springboot","starter"],"created_at":"2024-11-21T03:48:08.798Z","updated_at":"2025-07-02T21:04:57.280Z","avatar_url":"https://github.com/jcasbin.png","language":"Java","readme":"# casbin-spring-boot-example\n\nA simple example of [casbin-spring-boot-starter](https://github.com/jcasbin/casbin-spring-boot-starter).\n\n## Requirement\n\nJDK 17+\n\n## Usage\n\nThe project will start a server by default at `http://localhost:8080` with following api:\n\n- `GET /auth/login`: login to system.\n  \n  Request params: \n\n  - `username`: `admin` or `user`\n  - `password`: `pwd`\n  \n  Example: `GET /auth/login?username=admin\u0026password=pwd`\n- `GET /auth/logout`: logout the system.\n- `GET /data/admins/all`: available when login with `admin` account.\n- `PUT /data/admins/state/{state}`: Change the protected data, available when login with `admin`/`user` account.\n- `GET /data/users/all`: available when login with `admin`/`user` account.\n\nSpecial thanks to \u003chttps://github.com/jveverka/spring-examples/tree/java-17/spring-jcasbin\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcasbin%2Fcasbin-spring-boot-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcasbin%2Fcasbin-spring-boot-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcasbin%2Fcasbin-spring-boot-example/lists"}