Download OpenAPI specification:Download
API documentation for FeathersJS service including user management and authentication
Logs in a user using credentials (local strategy) or a JWT (jwt strategy), and returns a JWT token.
strategy | string Default: "local" Enum: "local" "jwt" The authentication strategy to use. Defaults to 'local' (email/username/phone and password) if not set, or 'jwt' for token-based authentication. |
string <email> Can be used if logging in with email. Required if using the local strategy and | |
username | string Can be used if logging in with a username. Required if using the local strategy and |
phone | string Can be used if logging in with a phone number. Required if using the local strategy and |
password | string Required if using the local strategy. |
accessToken | string Required if using the jwt strategy (accessToken). |
{- "strategy": "local",
- "email": "user@example.com",
- "username": "string",
- "phone": "string",
- "password": "string",
- "accessToken": "string"
}
{- "accessToken": "string",
- "user": {
- "id": 0,
- "username": "string",
- "email": "user@example.com",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string",
- "email_verified_at": "2019-08-24T14:15:22Z",
- "phone_verified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Creates a new one time password.
Email or phone number to receive OTP
string |
{- "phone": "string"
}
{- "error": "string"
}
Exchanges a one time password with an access token.
otp required | string |
Email or phone number to receiver
string |
{- "phone": "string"
}
{- "error": "string"
}
Returns a list of authentication providers.
app.service('oauth_providers').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "name": "string",
- "slug": "string",
- "key": "string",
- "secret": "string",
- "scope": "string",
- "nonce": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new authentication provider based on the provided object.
Authentication Provider object that needs to be added
name | string or null |
slug required | string |
key | string or null |
secret | string or null |
scope | string or null |
nonce | boolean or null |
{- "name": "string",
- "slug": "string",
- "key": "string",
- "secret": "string",
- "scope": "string",
- "nonce": false
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "key": "string",
- "secret": "string",
- "scope": "string",
- "nonce": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves an authentication provider based on the provided ID.
id required | integer |
const id = 0 app.service('oauth_providers').get(id)
{- "id": 0,
- "name": "string",
- "slug": "string",
- "key": "string",
- "secret": "string",
- "scope": "string",
- "nonce": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates an authentication provider based on the provided ID and object.
id required | integer |
Authentication provider object that needs to be updated
name | string or null |
slug required | string |
key | string or null |
secret | string or null |
scope | string or null |
nonce | boolean or null |
{- "name": "string",
- "slug": "string",
- "key": "string",
- "secret": "string",
- "scope": "string",
- "nonce": false
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "key": "string",
- "secret": "string",
- "scope": "string",
- "nonce": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches an authentication provider based on the provided ID and object.
id required | integer |
Authentication provider object that needs to be updated
name | string or null |
slug required | string |
key | string or null |
secret | string or null |
scope | string or null |
nonce | boolean or null |
{- "name": "string",
- "slug": "string",
- "key": "string",
- "secret": "string",
- "scope": "string",
- "nonce": false
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "key": "string",
- "secret": "string",
- "scope": "string",
- "nonce": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes an authentication provider based on the provided ID.
id required | integer |
{- "id": 0,
- "name": "string",
- "slug": "string",
- "key": "string",
- "secret": "string",
- "scope": "string",
- "nonce": false,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns a list of Authentication Sessions.
app.service('auth_sessions').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "title": "string",
- "user_id": 0,
- "auth_provider": "string",
- "ip": "string",
- "hostname": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "loc": "string",
- "org": "string",
- "postal": "string",
- "timezone": "string",
- "useragent": "string",
- "browser_name": "string",
- "browser_version": "string",
- "engine_name": "string",
- "engine_version": "string",
- "device_vendor": "string",
- "device_model": "string",
- "device_type": "string",
- "os_name": "string",
- "os_version": "string",
- "cpu_arch": "string",
- "encrypted_token": "string",
- "revoked": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new authentication session based on the provided object.
Authentication session object that needs to be added
title | string |
user_id required | integer |
auth_provider | string |
ip | string |
hostname | string |
city | string |
region | string |
country | string |
loc | string |
org | string |
postal | string |
timezone | string |
useragent | string |
browser_name | string |
browser_version | string |
engine_name | string |
engine_version | string |
device_vendor | string |
device_model | string |
device_type | string |
os_name | string |
os_version | string |
cpu_arch | string |
encrypted_token | string |
revoked | boolean |
{- "title": "string",
- "user_id": 0,
- "auth_provider": "string",
- "ip": "string",
- "hostname": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "loc": "string",
- "org": "string",
- "postal": "string",
- "timezone": "string",
- "useragent": "string",
- "browser_name": "string",
- "browser_version": "string",
- "engine_name": "string",
- "engine_version": "string",
- "device_vendor": "string",
- "device_model": "string",
- "device_type": "string",
- "os_name": "string",
- "os_version": "string",
- "cpu_arch": "string",
- "encrypted_token": "string",
- "revoked": true
}
{- "id": 0,
- "title": "string",
- "user_id": 0,
- "auth_provider": "string",
- "ip": "string",
- "hostname": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "loc": "string",
- "org": "string",
- "postal": "string",
- "timezone": "string",
- "useragent": "string",
- "browser_name": "string",
- "browser_version": "string",
- "engine_name": "string",
- "engine_version": "string",
- "device_vendor": "string",
- "device_model": "string",
- "device_type": "string",
- "os_name": "string",
- "os_version": "string",
- "cpu_arch": "string",
- "encrypted_token": "string",
- "revoked": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves an authentication session based on the provided ID.
id required | integer |
const id = 0 app.service('auth_sessions').get(id)
{- "id": 0,
- "title": "string",
- "user_id": 0,
- "auth_provider": "string",
- "ip": "string",
- "hostname": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "loc": "string",
- "org": "string",
- "postal": "string",
- "timezone": "string",
- "useragent": "string",
- "browser_name": "string",
- "browser_version": "string",
- "engine_name": "string",
- "engine_version": "string",
- "device_vendor": "string",
- "device_model": "string",
- "device_type": "string",
- "os_name": "string",
- "os_version": "string",
- "cpu_arch": "string",
- "encrypted_token": "string",
- "revoked": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates an authentication session based on the provided ID and object.
id required | integer |
Authentication session object that needs to be updated
title | string |
user_id required | integer |
auth_provider | string |
ip | string |
hostname | string |
city | string |
region | string |
country | string |
loc | string |
org | string |
postal | string |
timezone | string |
useragent | string |
browser_name | string |
browser_version | string |
engine_name | string |
engine_version | string |
device_vendor | string |
device_model | string |
device_type | string |
os_name | string |
os_version | string |
cpu_arch | string |
encrypted_token | string |
revoked | boolean |
{- "title": "string",
- "user_id": 0,
- "auth_provider": "string",
- "ip": "string",
- "hostname": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "loc": "string",
- "org": "string",
- "postal": "string",
- "timezone": "string",
- "useragent": "string",
- "browser_name": "string",
- "browser_version": "string",
- "engine_name": "string",
- "engine_version": "string",
- "device_vendor": "string",
- "device_model": "string",
- "device_type": "string",
- "os_name": "string",
- "os_version": "string",
- "cpu_arch": "string",
- "encrypted_token": "string",
- "revoked": true
}
{- "id": 0,
- "title": "string",
- "user_id": 0,
- "auth_provider": "string",
- "ip": "string",
- "hostname": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "loc": "string",
- "org": "string",
- "postal": "string",
- "timezone": "string",
- "useragent": "string",
- "browser_name": "string",
- "browser_version": "string",
- "engine_name": "string",
- "engine_version": "string",
- "device_vendor": "string",
- "device_model": "string",
- "device_type": "string",
- "os_name": "string",
- "os_version": "string",
- "cpu_arch": "string",
- "encrypted_token": "string",
- "revoked": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches an authentication session based on the provided ID and object.
id required | integer |
Authentication session object that needs to be updated
title | string |
user_id required | integer |
auth_provider | string |
ip | string |
hostname | string |
city | string |
region | string |
country | string |
loc | string |
org | string |
postal | string |
timezone | string |
useragent | string |
browser_name | string |
browser_version | string |
engine_name | string |
engine_version | string |
device_vendor | string |
device_model | string |
device_type | string |
os_name | string |
os_version | string |
cpu_arch | string |
encrypted_token | string |
revoked | boolean |
{- "title": "string",
- "user_id": 0,
- "auth_provider": "string",
- "ip": "string",
- "hostname": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "loc": "string",
- "org": "string",
- "postal": "string",
- "timezone": "string",
- "useragent": "string",
- "browser_name": "string",
- "browser_version": "string",
- "engine_name": "string",
- "engine_version": "string",
- "device_vendor": "string",
- "device_model": "string",
- "device_type": "string",
- "os_name": "string",
- "os_version": "string",
- "cpu_arch": "string",
- "encrypted_token": "string",
- "revoked": true
}
{- "id": 0,
- "title": "string",
- "user_id": 0,
- "auth_provider": "string",
- "ip": "string",
- "hostname": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "loc": "string",
- "org": "string",
- "postal": "string",
- "timezone": "string",
- "useragent": "string",
- "browser_name": "string",
- "browser_version": "string",
- "engine_name": "string",
- "engine_version": "string",
- "device_vendor": "string",
- "device_model": "string",
- "device_type": "string",
- "os_name": "string",
- "os_version": "string",
- "cpu_arch": "string",
- "encrypted_token": "string",
- "revoked": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes an authentication session based on the provided ID.
id required | integer |
{- "id": 0,
- "title": "string",
- "user_id": 0,
- "auth_provider": "string",
- "ip": "string",
- "hostname": "string",
- "city": "string",
- "region": "string",
- "country": "string",
- "loc": "string",
- "org": "string",
- "postal": "string",
- "timezone": "string",
- "useragent": "string",
- "browser_name": "string",
- "browser_version": "string",
- "engine_name": "string",
- "engine_version": "string",
- "device_vendor": "string",
- "device_model": "string",
- "device_type": "string",
- "os_name": "string",
- "os_version": "string",
- "cpu_arch": "string",
- "encrypted_token": "string",
- "revoked": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
app.service('access_group_types').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new group type based on the provided object.
Group type object that needs to be added
name | string |
slug required | string |
description | string |
{- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves a group type based on the provided ID.
id required | integer |
const id = 0 app.service('access_group_types').get(id)
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates a group type based on the provided ID and object.
id required | integer |
Group type object that needs to be updated
name | string |
slug required | string |
description | string |
{- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches a group type based on the provided ID and object.
id required | integer |
Group type object that needs to be updated
name | string |
slug required | string |
description | string |
{- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes a group type based on the provided ID.
id required | integer |
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
app.service('access_groups').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "type_id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new group based on the provided object.
Group object that needs to be added
type_id required | integer |
name | string |
slug | string |
description | string |
{- "type_id": 0,
- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "type_id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves a group based on the provided ID.
id required | integer |
const id = 0 app.service('access_groups').get(id)
{- "id": 0,
- "type_id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates a group based on the provided ID and object.
id required | integer |
Group object that needs to be updated
type_id required | integer |
name | string |
slug | string |
description | string |
{- "type_id": 0,
- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "type_id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches a group based on the provided ID and object.
id required | integer |
Group object that needs to be updated
type_id required | integer |
name | string |
slug | string |
description | string |
{- "type_id": 0,
- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "type_id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes a group based on the provided ID.
id required | integer |
{- "id": 0,
- "type_id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns a list of Access Scopes.
app.service('access_scopes').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- [
- {
- "id": 1,
- "name": "Full access",
- "slug": "full_access",
- "description": "",
- "created_at": "2024-08-19T12:34:56Z",
- "updated_at": "2024-08-20T12:34:56Z"
}, - {
- "id": 2,
- "name": "Roles",
- "slug": "roles",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 3,
- "name": "Roles read",
- "slug": "roles_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 4,
- "name": "Roles write",
- "slug": "roles_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 5,
- "name": "Roles create",
- "slug": "roles_create",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 6,
- "name": "Roles remove",
- "slug": "roles_remove",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 7,
- "name": "Access scopes read",
- "slug": "scopes_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 8,
- "name": "Access scopes write",
- "slug": "scopes_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 9,
- "name": "Users read",
- "slug": "users_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 10,
- "name": "Users write",
- "slug": "users_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 11,
- "name": "Users create",
- "slug": "users_create",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 12,
- "name": "Users remove",
- "slug": "users_remove",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 13,
- "name": "Users read full name",
- "slug": "users_read_full_name",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 14,
- "name": "Users read picture",
- "slug": "users_read_picture",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 15,
- "name": "Users read email",
- "slug": "users_read_email",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 16,
- "name": "Users read phone",
- "slug": "users_read_phone",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 17,
- "name": "Users write username",
- "slug": "users_write_username",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 18,
- "name": "Users write full name",
- "slug": "users_write_full_name",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 19,
- "name": "Users write picture",
- "slug": "users_write_picture",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 20,
- "name": "Users write email",
- "slug": "users_write_email",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 21,
- "name": "Users write phone",
- "slug": "users_write_phone",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 22,
- "name": "Users write password",
- "slug": "users_write_password",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 23,
- "name": "User authentication providers read",
- "slug": "user_oauth_providers_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 24,
- "name": "User authentication providers write",
- "slug": "user_oauth_providers_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 25,
- "name": "Authentication sessions read",
- "slug": "auth_sessions_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 26,
- "name": "Authentication sessions write",
- "slug": "auth_sessions_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 27,
- "name": "Authentication providers read",
- "slug": "auth_providers_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 28,
- "name": "Authentication providers write",
- "slug": "auth_providers_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 29,
- "name": "User roles read",
- "slug": "user_roles_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 30,
- "name": "User roles write",
- "slug": "user_roles_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 31,
- "name": "Role access scopes read",
- "slug": "role_scopes_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 32,
- "name": "Role access scopes write",
- "slug": "role_scopes_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 33,
- "name": "Group types read",
- "slug": "access_group_types_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 34,
- "name": "Group types write",
- "slug": "access_group_types_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 35,
- "name": "Groups read",
- "slug": "access_groups_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 36,
- "name": "Groups write",
- "slug": "access_groups_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 37,
- "name": "Groups create",
- "slug": "access_groups_create",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 38,
- "name": "User group roles read",
- "slug": "user_group_roles_read",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}, - {
- "id": 39,
- "name": "User group roles write",
- "slug": "user_group_roles_write",
- "description": "",
- "created_at": "2024-08-18T11:20:30Z",
- "updated_at": "2024-08-19T11:20:30Z"
}
]
]
}
Creates a new access scope based on the provided object.
Access scope object that needs to be added
name | string |
slug required | string |
description | string |
{- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves an access scope based on the provided ID.
id required | integer |
const id = 0 app.service('access_scopes').get(id)
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates an access scope based on the provided ID and object.
id required | integer |
Access scope object that needs to be updated
name | string |
slug required | string |
description | string |
{- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches an access scope based on the provided ID and object.
id required | integer |
Access scope object that needs to be updated
name | string |
slug required | string |
description | string |
{- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes an access scope based on the provided ID.
id required | integer |
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Sends a verification token to email or phone for validation.
Email or phone to receive verification token
string |
{- "phone": "string"
}
{- "error": "string"
}
Verifys an account by given email or phone.
id required | string |
Email or phone to receiver
token | string |
{- "token": "string"
}
{- "error": "string"
}
Sends a recovery token to email for password reset.
Email to receive recovery token
string |
{- "email": "string"
}
{- "error": "string"
}
Recovers an account by given email.
email required | string |
Email to receiver
token | string |
password | string |
{- "token": "string",
- "password": "string"
}
{- "error": "string"
}
app.service('roles').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new role based on the provided object.
Role object that needs to be added
name | string or null |
slug required | string |
description | string |
{- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves roles based on the provided ID.
id required | integer |
const id = 0 app.service('roles').get(id)
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates roles based on the provided ID and object.
id required | integer |
Role object that needs to be updated
name | string or null |
slug required | string |
description | string |
{- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches roles based on the provided ID and object.
id required | integer |
Role object that needs to be updated
name | string or null |
slug required | string |
description | string |
{- "name": "string",
- "slug": "string",
- "description": "string"
}
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes roles based on the provided ID.
id required | integer |
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns a list of Role access scopes.
app.service('role_access_scopes').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "role_id": 0,
- "access_scope_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new role_access_scopes relation based on the provided object.
RoleAccessScope object that needs to be added
role_id required | integer |
access_scope_id required | integer |
{- "role_id": 0,
- "access_scope_id": 0
}
{- "id": 0,
- "role_id": 0,
- "access_scope_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves role_access_scopes based on the provided ID.
id required | integer |
const id = 0 app.service('role_access_scopes').get(id)
{- "id": 0,
- "role_id": 0,
- "access_scope_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates role_access_scopes based on the provided ID and object.
id required | integer |
RoleAccessScope object that needs to be updated
role_id required | integer |
access_scope_id required | integer |
{- "role_id": 0,
- "access_scope_id": 0
}
{- "id": 0,
- "role_id": 0,
- "access_scope_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches role_access_scopes based on the provided ID and object.
id required | integer |
RoleAccessScope object that needs to be updated
role_id required | integer |
access_scope_id required | integer |
{- "role_id": 0,
- "access_scope_id": 0
}
{- "id": 0,
- "role_id": 0,
- "access_scope_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes role_access_scopes based on the provided ID.
id required | integer |
{- "id": 0,
- "role_id": 0,
- "access_scope_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
app.service('users').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "username": "string",
- "email": "user@example.com",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string",
- "email_verified_at": "2019-08-24T14:15:22Z",
- "phone_verified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new user based on the provided user object.
User object that needs to be added
username | string or null |
email required | string <email> |
password required | string |
first_name | string or null |
middle_name | string or null |
last_name | string or null |
picture | string or null |
locale | string or null |
phone | string or null |
{- "username": "string",
- "email": "user@example.com",
- "password": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string"
}
{- "id": 0,
- "username": "string",
- "email": "user@example.com",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string",
- "email_verified_at": "2019-08-24T14:15:22Z",
- "phone_verified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves a user based on the provided ID.
id required | integer |
const id = 0 app.service('users').get(id)
{- "id": 0,
- "username": "string",
- "email": "user@example.com",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string",
- "email_verified_at": "2019-08-24T14:15:22Z",
- "phone_verified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates a user based on the provided ID and user object.
id required | integer |
User object that needs to be updated
username | string or null |
email required | string <email> |
password required | string |
first_name | string or null |
middle_name | string or null |
last_name | string or null |
picture | string or null |
locale | string or null |
phone | string or null |
{- "username": "string",
- "email": "user@example.com",
- "password": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string"
}
{- "id": 0,
- "username": "string",
- "email": "user@example.com",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string",
- "email_verified_at": "2019-08-24T14:15:22Z",
- "phone_verified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches a user based on the provided ID and user object.
id required | integer |
User object that needs to be updated
username | string or null |
email required | string <email> |
password required | string |
first_name | string or null |
middle_name | string or null |
last_name | string or null |
picture | string or null |
locale | string or null |
phone | string or null |
{- "username": "string",
- "email": "user@example.com",
- "password": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string"
}
{- "id": 0,
- "username": "string",
- "email": "user@example.com",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string",
- "email_verified_at": "2019-08-24T14:15:22Z",
- "phone_verified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes a user based on the provided ID.
id required | integer |
{- "id": 0,
- "username": "string",
- "email": "user@example.com",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "picture": "string",
- "locale": "string",
- "phone": "string",
- "email_verified_at": "2019-08-24T14:15:22Z",
- "phone_verified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns a list of User Authentication Providers.
app.service('user_oauth_providers').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "user_id": 0,
- "slug": "string",
- "sub": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new authentication provider based on the provided object.
Authentication Provider object that needs to be added
user_id required | integer |
slug required | string |
sub required | string |
{- "user_id": 0,
- "slug": "string",
- "sub": "string"
}
{- "id": 0,
- "user_id": 0,
- "slug": "string",
- "sub": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves a user authentication provider based on the provided ID.
id required | integer |
const id = 0 app.service('user_oauth_providers').get(id)
{- "id": 0,
- "user_id": 0,
- "slug": "string",
- "sub": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates a user authentication provider based on the provided ID and object.
id required | integer |
User authentication provider object that needs to be updated
user_id required | integer |
slug required | string |
sub required | string |
{- "user_id": 0,
- "slug": "string",
- "sub": "string"
}
{- "id": 0,
- "user_id": 0,
- "slug": "string",
- "sub": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches a user authentication provider based on the provided ID and object.
id required | integer |
User authentication provider object that needs to be updated
user_id required | integer |
slug required | string |
sub required | string |
{- "user_id": 0,
- "slug": "string",
- "sub": "string"
}
{- "id": 0,
- "user_id": 0,
- "slug": "string",
- "sub": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes a user authentication provider based on the provided ID.
id required | integer |
{- "id": 0,
- "user_id": 0,
- "slug": "string",
- "sub": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
app.service('user_roles').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "user_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new user_roles relation based on the provided object.
UserRole object that needs to be added
user_id required | integer |
role_id required | integer |
{- "user_id": 0,
- "role_id": 0
}
{- "id": 0,
- "user_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves user_roles based on the provided ID.
id required | integer |
const id = 0 app.service('user_roles').get(id)
{- "id": 0,
- "user_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates user_roles based on the provided ID and object.
id required | integer |
UserRole object that needs to be updated
user_id required | integer |
role_id required | integer |
{- "user_id": 0,
- "role_id": 0
}
{- "id": 0,
- "user_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches user_roles based on the provided ID and object.
id required | integer |
UserRole object that needs to be updated
user_id required | integer |
role_id required | integer |
{- "user_id": 0,
- "role_id": 0
}
{- "id": 0,
- "user_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes user_roles based on the provided ID.
id required | integer |
{- "id": 0,
- "user_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns a list of User group roles.
app.service('user_group_roles').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "user_id": 0,
- "group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new user_group_roles relation based on the provided object.
UserGroupRole object that needs to be added
user_id required | integer |
group_id required | integer |
role_id required | integer |
{- "user_id": 0,
- "group_id": 0,
- "role_id": 0
}
{- "id": 0,
- "user_id": 0,
- "group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves user_group_roles based on the provided ID.
id required | integer |
const id = 0 app.service('user_group_roles').get(id)
{- "id": 0,
- "user_id": 0,
- "group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates user_group_roles based on the provided ID and object.
id required | integer |
UserGroupRole object that needs to be updated
user_id required | integer |
group_id required | integer |
role_id required | integer |
{- "user_id": 0,
- "group_id": 0,
- "role_id": 0
}
{- "id": 0,
- "user_id": 0,
- "group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches user_group_roles based on the provided ID and object.
id required | integer |
UserGroupRole object that needs to be updated
user_id required | integer |
group_id required | integer |
role_id required | integer |
{- "user_id": 0,
- "group_id": 0,
- "role_id": 0
}
{- "id": 0,
- "user_id": 0,
- "group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes user_group_roles based on the provided ID.
id required | integer |
{- "id": 0,
- "user_id": 0,
- "group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Returns a list of Group group roles.
app.service('group_group_roles').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "parent_group_id": 0,
- "child_group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new group_group_roles relation based on the provided object.
GroupGroupRole object that needs to be added
parent_group_id | integer |
child_group_id | integer |
role_id required | integer |
{- "parent_group_id": 0,
- "child_group_id": 0,
- "role_id": 0
}
{- "id": 0,
- "parent_group_id": 0,
- "child_group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves group_group_roles based on the provided ID.
id required | integer |
const id = 0 app.service('group_group_roles').get(id)
{- "id": 0,
- "parent_group_id": 0,
- "child_group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates group_group_roles based on the provided ID and object.
id required | integer |
GroupGroupRole object that needs to be updated
parent_group_id | integer |
child_group_id | integer |
role_id required | integer |
{- "parent_group_id": 0,
- "child_group_id": 0,
- "role_id": 0
}
{- "id": 0,
- "parent_group_id": 0,
- "child_group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches group_group_roles based on the provided ID and object.
id required | integer |
GroupGroupRole object that needs to be updated
parent_group_id | integer |
child_group_id | integer |
role_id required | integer |
{- "parent_group_id": 0,
- "child_group_id": 0,
- "role_id": 0
}
{- "id": 0,
- "parent_group_id": 0,
- "child_group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes group_group_roles based on the provided ID.
id required | integer |
{- "id": 0,
- "parent_group_id": 0,
- "child_group_id": 0,
- "role_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
app.service('events').find({ query: {} })
{- "total": 0,
- "limit": 0,
- "skip": 0,
- "data": [
- {
- "id": 0,
- "source_table": "string",
- "event": "created",
- "custom_event": "string",
- "table_id": 0,
- "user_id": 0,
- "previous_user_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Creates a new events relation based on the provided object.
Event object that needs to be added
source_table | string |
event required | string Default: "custom" Enum: "created" "updated" "patched" "removed" "custom" |
custom_event | string |
table_id | integer |
user_id | integer |
previous_user_id | integer |
{- "source_table": "string",
- "event": "created",
- "custom_event": "string",
- "table_id": 0,
- "user_id": 0,
- "previous_user_id": 0
}
{- "id": 0,
- "source_table": "string",
- "event": "created",
- "custom_event": "string",
- "table_id": 0,
- "user_id": 0,
- "previous_user_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Retrieves events based on the provided ID.
id required | integer |
const id = 0 app.service('events').get(id)
{- "id": 0,
- "source_table": "string",
- "event": "created",
- "custom_event": "string",
- "table_id": 0,
- "user_id": 0,
- "previous_user_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Updates events based on the provided ID and object.
id required | integer |
Event object that needs to be updated
source_table | string |
event required | string Default: "custom" Enum: "created" "updated" "patched" "removed" "custom" |
custom_event | string |
table_id | integer |
user_id | integer |
previous_user_id | integer |
{- "source_table": "string",
- "event": "created",
- "custom_event": "string",
- "table_id": 0,
- "user_id": 0,
- "previous_user_id": 0
}
{- "id": 0,
- "source_table": "string",
- "event": "created",
- "custom_event": "string",
- "table_id": 0,
- "user_id": 0,
- "previous_user_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Patches events based on the provided ID and object.
id required | integer |
Event object that needs to be updated
source_table | string |
event required | string Default: "custom" Enum: "created" "updated" "patched" "removed" "custom" |
custom_event | string |
table_id | integer |
user_id | integer |
previous_user_id | integer |
{- "source_table": "string",
- "event": "created",
- "custom_event": "string",
- "table_id": 0,
- "user_id": 0,
- "previous_user_id": 0
}
{- "id": 0,
- "source_table": "string",
- "event": "created",
- "custom_event": "string",
- "table_id": 0,
- "user_id": 0,
- "previous_user_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
Deletes events based on the provided ID.
id required | integer |
{- "id": 0,
- "source_table": "string",
- "event": "created",
- "custom_event": "string",
- "table_id": 0,
- "user_id": 0,
- "previous_user_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}