芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/status.pulsehost.co.uk/themes/altum/views/api-documentation/team_members.php
main->breadcrumbs_is_enabled): ?>
= l('index.breadcrumb') ?>
= l('api_documentation.breadcrumb') ?>
= l('api_documentation.team_members') ?>
= l('api_documentation.team_members') ?>
= l('api_documentation.read') ?>
= l('api_documentation.endpoint') ?>
GET
= SITE_URL ?>api/team-members/
{team_id}
= l('api_documentation.example') ?>
curl --request GET \
--url '= SITE_URL ?>api/team-members/
{team_id}
' \
--header 'Authorization: Bearer
{api_key}
' \
= l('api_documentation.response') ?>
{ "data": [ { "id": 1, "team_id": 1, "user_email": "hello@example.com", "access": { "read": true, "create": true, "update": true, "delete": false }, "status": 1, "datetime": "2022-06-05 14:37:10", "last_datetime": "2022-06-07 13:04:31" } ] }
= l('api_documentation.create') ?>
= l('api_documentation.endpoint') ?>
POST
= SITE_URL ?>api/teams
= l('api_documentation.parameters') ?>
= l('global.details') ?>
= l('global.description') ?>
team_id
= l('api_documentation.required') ?>
= l('api_documentation.int') ?>
-
user_email
= l('api_documentation.required') ?>
= l('api_documentation.string') ?>
-
access
= l('api_documentation.optional') ?>
= l('api_documentation.string') ?>
= l('api_documentation.array') ?>
$value): ?> = '
' . implode('
,
', array_keys($teams_access[$key])) . '
' . '
' ?>
= l('api_documentation.example') ?>
curl --request POST \
--url '= SITE_URL ?>api/team-members' \
--header 'Authorization: Bearer
{api_key}
' \
--header 'Content-Type: multipart/form-data' \
--form 'team_id=
1
' \
--form 'user_email=
hello@example.com
' \
= l('api_documentation.response') ?>
{ "data": { "id": 1 } }
= l('api_documentation.update') ?>
= l('api_documentation.endpoint') ?>
POST
= SITE_URL ?>api/team-members/
{team_member_id}
= l('api_documentation.parameters') ?>
= l('global.details') ?>
= l('global.description') ?>
access
= l('api_documentation.optional') ?>
= l('api_documentation.string') ?>
= l('api_documentation.array') ?>
$value): ?> = '
' . implode('
,
', array_keys($teams_access[$key])) . '
' . '
' ?>
= l('api_documentation.example') ?>
curl --request POST \
--url '= SITE_URL ?>api/team-members/
{team_member_id}
' \
--header 'Authorization: Bearer
{api_key}
' \
--header 'Content-Type: multipart/form-data' \
--form 'access[]=
create
' \
--form 'access[]=
update
' \
= l('api_documentation.response') ?>
{ "data": { "id": 1 } }
= l('api_documentation.delete') ?>
= l('api_documentation.endpoint') ?>
DELETE
= SITE_URL ?>api/team-members/
{team_member_id}
= l('api_documentation.example') ?>
curl --request DELETE \
--url '= SITE_URL ?>api/team-members/
{team_member_id}
' \
--header 'Authorization: Bearer
{api_key}
' \