Your Strapi host.
Authenticate the user with the token present on the URL (for browser) or in params
(on Node.js)
Remove token from Axios configuration
Create data
Type of entry pluralized
New entry
Delete an entry
Type of entry pluralized
ID of entry
Sends an email to a user with the link of your reset password page. This link contains an URL param code which is required to reset user password. Received link url format https://my-domain.com/rest-password?code=privateCode.
Link that user will receive.
List entries
Filter and order queries.
Get a specific entry
Type of entry pluralized
ID of entry
Get the total count of entries with the provided criteria
Filter and order queries.
Get file
ID of entry
Get files
Filter and order queries
Object[] Files data
Retrieve the connect provider URL
Check if it runs on browser
Login by getting an authentication token.
Can either be an email or a username.
Authentication User token and profile
Register a new user.
Authentication User token and profile
Axios request
Request method
Server URL
Custom Axios config
Reset the user password.
Is the url params received from the email link (see forgot password).
Search for files
Keywords
Set token on Axios configuration
Retrieved by register or login
Update data
Type of entry pluralized
ID of entry
Upload files
const form = new FormData();
form.append('files', fileInputElement.files[0], 'file-name.ext');
form.append('files', fileInputElement.files[1], 'file-2-name.ext');
const files = await strapi.upload(form);
const FormData = require('form-data');
const fs = require('fs');
const form = new FormData();
form.append('files', fs.createReadStream('./file-name.ext'), 'file-name.ext');
const files = await strapi.upload(form, {
headers: form.getHeaders()
});
FormData
Generated using TypeDoc
Default constructor.