Supported API list
- View the API list at:
https://[domain]/gp247_admin/api_connection
.
Obtain access_token
- Core:
POST api/core/login
withusername
,password
; extra parameter:remember_me
(boolean:true
/false
). - Front:
POST api/front/login
withemail
,password
; extra parameter:remember_me
(boolean:true
/false
).
Strengthen security with API Connection
- Visit
https://[domain]/gp247_admin/api_connection
to enable the feature and generate theapiconnection | apikey
pair. - When enabled, API Connection applies to all API endpoints (core and front).
Notes
- For Core APIs: use the
access_token
issued byapi/core/login
. - For Front APIs: use the
access_token
issued byapi/front/login
for secured endpoints. - If API Connection is used, include these headers for every endpoint (core and front).
Example request
curl -X GET "https://your-domain.local/api/your_resource" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-bearer-token" \
-H "apiconnection: your-connection" \
-H "apikey: your-api-key"
Note: replace your-domain.local
, your-bearer-token
, your-connection
, and your-api-key
with your actual values.