Artisyn API
  1. Categories
Artisyn API
  • INTRODUCTION
  • Auth
    • OAUTH
      • Google
      • Google Callback
    • Login
      POST
    • Register
      POST
    • Verify Account
      PUT
    • Logout
      DELETE
    • Forgot Password
      POST
    • Reset Password
      PUT
  • Admin
    • Categories
      • List Categories
      • Create Category
      • Get Category
      • Update Category
      • Delete Category
  • Categories
    • List Categories
      GET
    • Get Category
      GET
  • Curator
    • Artisans
      • List Artisans
      • Create Artisan
      • Show Artisan
      • Update Artisan
      • Toggle Activation
      • Bulk Operation
      • Delete Artisan
  • Index
    POST
  1. Categories

List Categories

Developing
GET
http://127.0.0.1:3000/api/categories
Maintainer:Not configured
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:3000/api/categories?search=Facilitator&page=1&limit=15&orderBy=id&orderDir=asc'
Response Response Example
{
    "data": [
        {
            "id": "string",
            "name": "string",
            "description": "string",
            "icon": "string",
            "createdAt": "string",
            "updatedAt": "string"
        }
    ],
    "status": "string",
    "message": "string",
    "code": 0
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
search
string  | null 
optional
Filter categories by search
Example:
Facilitator
page
integer  | null 
optional
The page to load
Default:
1
Example:
1
limit
integer  | null 
optional
The number of results to return per page
Default:
50
Example:
15
orderBy
enum<string>  | enum<null> 
optional
Order the results by id or name
Allowed values:
idname
Example:
id
orderDir
enum<string>  | enum<null> 
optional
The direction to order the result
Allowed values:
descasc
Example:
asc

Responses

🟢200OK
application/json
Body
data
array [object {6}] 
required
id
string 
required
name
string 
required
description
string 
required
icon
string 
required
createdAt
string 
required
updatedAt
string 
required
status
string 
required
message
string 
required
code
integer 
required
Previous
Delete Category
Next
Get Category
Built with