Example 6841
API Routes
REST API route definitions.
{
base_url: "/api/v3"
routes: [
{
method: "DELETE"
path: "/orders"
handler: "listProducts"
auth: true
}
{
method: "POST"
path: "/products/:id"
handler: "updateOrders"
auth: true
}
{
method: "PATCH"
path: "/comments"
handler: "createPosts"
auth: true
}
{
method: "DELETE"
path: "/orders/:id"
handler: "deleteUsers"
auth: false
}
{
method: "PATCH"
path: "/products"
handler: "createUsers"
auth: true
}
{
method: "PATCH"
path: "/comments/:id"
handler: "deletePosts"
auth: false
}
{
method: "GET"
path: "/users"
handler: "listOrders"
auth: false
}
]
}