# casbin-spring-boot-example **Repository Path**: blueses/casbin-spring-boot-example ## Basic Information - **Project Name**: casbin-spring-boot-example - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-27 - **Last Updated**: 2023-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # casbin-spring-boot-example A simple example of [casbin-spring-boot-starter](https://github.com/jcasbin/casbin-spring-boot-starter). Run with: ```shell ./gradlew bootRun ``` Which will start a server at `http://localhost:8080` with following api: - `GET /auth/login`: login to system. Request params: - `username`: `admin` or `user` - `password`: `pwd` Example: `GET /auth/login?username=admin&password=pwd` - `GET /auth/logout`: logout the system. - `GET /data/admins/all`: available when login with `admin` account. - `PUT /data/admins/state/{state}`: Change the protected data, available when login with `admin`/`user` account. - `GET /data/users/all`: available when login with `admin`/`user` account. Special thanks to