Rest API Documentation
Base URL: https://wp.test/wp-json/CatFolders/v1/public
Token: PNRr30R6sFgfjMZJ22vTgZC5uOO8z3pJIChbsezM
Endpoints
GET FOLDERS
Retrieve the list of folders.
Request
GET {{baseURL}}/folders HTTP/1.1
Authorization: Bearer {{token}}
CREATE A FOLDER
Create a new folder.
Request
POST {{baseURL}}/folders HTTP/1.1
Authorization: Bearer {{token}}
Content-Type: application/json
{
"title": "API Folder1",
"parent": 0
}
SET ATTACHMENTS TO FOLDER
Assign attachments to a specific folder.
Request
POST {{baseURL}}/attachment-to-folder HTTP/1.1
Authorization: Bearer {{token}}
Content-Type: application/json
{
"folderId": "198",
"imgIds": [2387, 2388]
}
DELETE FOLDERS
Delete specific folders.
Request
DELETE {{baseURL}}/folders HTTP/1.1
Authorization: Bearer {{token}}
Content-Type: application/json
{
"ids": [187]
}