For the complete documentation index, see llms.txt. This page is also available as Markdown.

Categories

This page includes all endpoints available for the categories of Logiciel Actif.

List all categories

GET https://app.gem-books.com/api/categories

This endpoint allows you to get the list of your categories.

Headers

Name
Type
Description

Authentication*

string

Bearer Token

Accept

string

Should be application/json

{
  "data": [
    {
      "id": 3,
      "code": "500",
      "name_fr": "Job",
      "name_en": "Job"
    },
    {
      "id": 2,
      "code": "200",
      "name_fr": "Pieces",
      "name_en": "Parts"
    },
    {
      "id": 1,
      "code": "DEFAULT",
      "name_fr": "DEFAULT",
      "name_en": "Default"
    }
  ],
  "meta": {
    "current_page": 1,
    "last_page": 1,
    "per_page": 500,
    "total": 3
  },
  "success": true
}

Retrieve a specific sale product

GET https://app.gem-books.com/api/categories/:id

This endpoint allows you to get one specific category.

Path Parameters

Name
Type
Description

id

integer

The ID of the category to retrieve.

Headers

Name
Type
Description

Authentication*

string

Bearer Token

Accept

string

Should be application/json

Create a category

POST https://app.gem-books.com/api/categories

Headers

Name
Type
Description

Authentication

string

Bearer Token

Content-type

string

Should be application/json

Accept

string

Should be application/json

Request Body

Name
Type
Description

code

string

Code

name_fr

string

Category name in French

name_en

string

Category name in English

Body Example

Update a category

PUT https://app.gem-books.com/api/categories/:id

This endpoint allows you to update a specific category. Returns the updated category.

Path Parameters

Name
Type
Description

id

integer

Category ID to update.

Headers

Name
Type
Description

Authentication

string

Bearer Token

Content-Type

string

Should be application/json

Accept

string

Should be application/json

Body Example

Last updated