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

Dingo/API implementation for OctoberCMS

License

NotificationsYou must be signed in to change notification settings

jonathandey/oc-jd-dingoapi

Repository files navigation

Setup

Add the following env variables

API_PREFIX=apiAPI_SUBTYPE=YOUR_SUBTYPEAPI_DEBUG=trueJWT_TTL=31622400JWT_BLACKLIST_ENABLED=falseAPI_DEFAULT_FORMAT=json

Testing

First get a token

curl -X "POST" "http://127.0.0.1:8000/api/auth/token" \     -H 'Accept: application/x.YOUR_SUBTYPE.v1+json' \     -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8'

Then using the token

curl "http://127.0.0.1:8000/api/user/details" \     -H 'Accept: application/x.YOUR_SUBTYPE.v1+json' \     -H 'Authorization: Bearer TOKEN_FROM_FIRST_REQUEST'

Common problems

Routes not working?

Ensure you require your API routes.php file within your Plugin.php boot method. Example:require realpath(__DIR__ . '/http/api/routes.php');

About

Dingo/API implementation for OctoberCMS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp