Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Example for casbin-spring-boot-starter

License

NotificationsYou must be signed in to change notification settings

jcasbin/casbin-spring-boot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple example ofcasbin-spring-boot-starter.

Requirement

JDK 17+

Usage

The project will start a server by default athttp://localhost:8080 with following api:

  • GET /auth/login: login to system.

    Request params:

    • username:admin oruser
    • password:pwd

    Example:GET /auth/login?username=admin&password=pwd

  • GET /auth/logout: logout the system.

  • GET /data/admins/all: available when login withadmin account.

  • PUT /data/admins/state/{state}: Change the protected data, available when login withadmin/user account.

  • GET /data/users/all: available when login withadmin/user account.

Special thanks tohttps://github.com/jveverka/spring-examples/tree/java-17/spring-jcasbin

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp