- Notifications
You must be signed in to change notification settings - Fork7
Dingo/API implementation for OctoberCMS
License
NotificationsYou must be signed in to change notification settings
jonathandey/oc-jd-dingoapi
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Implementation of theDingo/Api for OcotberCMS
Add the following env variables
API_PREFIX=apiAPI_SUBTYPE=YOUR_SUBTYPEAPI_DEBUG=trueJWT_TTL=31622400JWT_BLACKLIST_ENABLED=falseAPI_DEFAULT_FORMAT=jsonFirst 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'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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.