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

A quick start compojure-api app containing custom token authentication

NotificationsYou must be signed in to change notification settings

ksuandi/role-based-auth-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A compojure-api sample utilizing token-based authentication and role-guarded routes.

Create the MySQL database for local development

Usescript/init_database.sql

Running Locally

lein ring server-headless

Then visithttp://localhost:3000/api/v1/docs/index.html

Try API!

Available users:user:password,admin:password,poweruser:password

  1. Get token viahttp://localhost:3000/api/v1/docs/index.html#!/auth/post_api_v1_login

  2. Click 'Authorize' swagger button and enterToken [your_token]

  3. Check routes that require specific role

About

A quick start compojure-api app containing custom token authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp