### Application Configuration Source: http://dashboard.topsoft.cloud:8000/docs# Endpoints for getting and updating application configurations. ```APIDOC ## GET /data/cfg ### Description Get application configuration settings. ### Method GET ### Endpoint /data/cfg ### Response #### Success Response (200) - **MesasCfgOut** (object) - The application configuration object. ### Response Example ```json { "config_key": "value" } ``` ``` ```APIDOC ## PUT /data/cfg ### Description Update application configuration settings. ### Method PUT ### Endpoint /data/cfg ### Request Body - **MesasCfgUpdate** (object) - The configuration settings to update. ### Response #### Success Response (200) - **MesasCfgOut** (object) - The updated application configuration object. ### Response Example ```json { "config_key": "new_value" } ``` ``` -------------------------------- ### Product Management Source: http://dashboard.topsoft.cloud:8000/docs# Endpoints for listing and managing products. ```APIDOC ## GET /data/produtos ### Description List all products. ### Method GET ### Endpoint /data/produtos ### Response #### Success Response (200) - **ProdutoOut** (array) - An array of product objects. ### Response Example ```json [ { "codigo": "P001", "nome": "Produto A", "preco": 10.50 } ] ``` ``` ```APIDOC ## GET /data/produtos/{codigo} ### Description Get a specific product by its code. ### Method GET ### Endpoint /data/produtos/{codigo} ### Parameters #### Path Parameters - **codigo** (string) - Required - The product code ### Response #### Success Response (200) - **ProdutoOut** (object) - The product object. ### Response Example ```json { "codigo": "P001", "nome": "Produto A", "preco": 10.50 } ``` ``` ```APIDOC ## PUT /data/produtos/{codigo} ### Description Update an existing product. ### Method PUT ### Endpoint /data/produtos/{codigo} ### Parameters #### Path Parameters - **codigo** (string) - Required - The product code to update ### Request Body - **ProdutoUpdate** (object) - The updated product data. - **nome** (string) - Optional - The new name of the product - **preco** (number) - Optional - The new price of the product ### Response #### Success Response (200) - **ProdutoOut** (object) - The updated product object. ### Response Example ```json { "codigo": "P001", "nome": "Produto A Atualizado", "preco": 12.00 } ``` ``` -------------------------------- ### Initial Data Load Source: http://dashboard.topsoft.cloud:8000/docs# Performs an initial data load for the application, including company, sellers, groups, tables, and products. ```APIDOC ## GET /data/carga ### Description Initial data load for the app (company, sellers, groups, tables, products). ### Method GET ### Endpoint /data/carga ### Response #### Success Response (200) - **CargaResponse** (object) - Response object containing loaded data. ### Response Example ```json { "message": "Initial data loaded successfully" } ``` ``` -------------------------------- ### Seller Management Source: http://dashboard.topsoft.cloud:8000/docs# Endpoint for listing sellers. ```APIDOC ## GET /data/vendedores ### Description List all sellers. ### Method GET ### Endpoint /data/vendedores ### Response #### Success Response (200) - **VendedorOut** (array) - An array of seller objects. ### Response Example ```json [ { "codigo": "V001", "nome": "Vendedor Exemplo" } ] ``` ``` -------------------------------- ### Authentication and JWT Generation Source: http://dashboard.topsoft.cloud:8000/docs# Logs in a user and generates a JWT token. This token must be included in the 'Bearer' header for subsequent requests. ```APIDOC ## POST /auth/login ### Description Login and JWT generation. ### Method POST ### Endpoint /auth/login ### Request Body - **username** (string) - Required - User's username - **password** (string) - Required - User's password ### Response #### Success Response (200) - **access_token** (string) - The JWT access token - **token_type** (string) - The type of token (e.g., Bearer) ### Response Example ```json { "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "bearer" } ``` ``` -------------------------------- ### Authenticated User Data Source: http://dashboard.topsoft.cloud:8000/docs# Retrieves the data for the currently authenticated user. ```APIDOC ## GET /data/me ### Description Data of the authenticated user. ### Method GET ### Endpoint /data/me ### Response #### Success Response (200) - **EmpresaOut** (object) - User's company data. ### Response Example ```json { "cnpj": "12345678000199", "nome": "Minha Empresa" } ``` ``` -------------------------------- ### Table Operations (MESAS_CONTROLE) Source: http://dashboard.topsoft.cloud:8000/docs# Endpoints for CRUD operations on tables and their entries. ```APIDOC ## GET /data/mesas ### Description List all tables. ### Method GET ### Endpoint /data/mesas ### Response #### Success Response (200) - **MesaOut** (array) - An array of table objects. ### Response Example ```json [ { "codigo": "M001", "descricao": "Mesa Principal" } ] ``` ``` ```APIDOC ## GET /data/mesas/{codigo} ### Description Get details of a specific table. ### Method GET ### Endpoint /data/mesas/{codigo} ### Parameters #### Path Parameters - **codigo** (string) - Required - The table code ### Response #### Success Response (200) - **MesaDetalhe** (object) - The detailed table object. ### Response Example ```json { "codigo": "M001", "descricao": "Mesa Principal", "status": "Ocupada" } ``` ``` ```APIDOC ## PUT /data/mesas/{codigo} ### Description Update an existing table. ### Method PUT ### Endpoint /data/mesas/{codigo} ### Parameters #### Path Parameters - **codigo** (string) - Required - The table code to update ### Request Body - **MesaUpdate** (object) - The updated table data. - **descricao** (string) - Optional - The new description of the table - **status** (string) - Optional - The new status of the table ### Response #### Success Response (200) - **MesaOut** (object) - The updated table object. ### Response Example ```json { "codigo": "M001", "descricao": "Mesa Principal Atualizada", "status": "Livre" } ``` ``` ```APIDOC ## POST /data/mesas-controle ### Description Create a new table entry (lancamento). ### Method POST ### Endpoint /data/mesas-controle ### Request Body - **MesaControleRequest** (object) - The data for the new table entry. - **mesa_codigo** (string) - Required - The code of the table - **produto_codigo** (string) - Required - The code of the product - **quantidade** (integer) - Required - The quantity of the product ### Response #### Success Response (200) - **MesaControleOut** (object) - The created table entry object. ### Response Example ```json { "id": 1, "mesa_codigo": "M001", "produto_codigo": "P001", "quantidade": 2, "status": "Aberto" } ``` ``` ```APIDOC ## GET /data/mesas-controle ### Description List all table entries (lancamentos). ### Method GET ### Endpoint /data/mesas-controle ### Response #### Success Response (200) - **MesaControleOut** (array) - An array of table entry objects. ### Response Example ```json [ { "id": 1, "mesa_codigo": "M001", "produto_codigo": "P001", "quantidade": 2, "status": "Aberto" } ] ``` ``` ```APIDOC ## POST /data/mesas-controle/batch ### Description Create multiple table entries in batch. ### Method POST ### Endpoint /data/mesas-controle/batch ### Request Body - **MesaControleRequest** (array) - An array of table entry objects to create. ### Response #### Success Response (200) - **MesaControleOut** (array) - An array of the created table entry objects. ### Response Example ```json [ { "id": 2, "mesa_codigo": "M001", "produto_codigo": "P002", "quantidade": 1, "status": "Aberto" } ] ``` ``` ```APIDOC ## PUT /data/mesas-controle/{item_id} ### Description Update an existing table entry. ### Method PUT ### Endpoint /data/mesas-controle/{item_id} ### Parameters #### Path Parameters - **item_id** (integer) - Required - The ID of the table entry to update ### Request Body - **MesaControleRequest** (object) - The updated data for the table entry. - **quantidade** (integer) - Optional - The new quantity - **status** (string) - Optional - The new status ### Response #### Success Response (200) - **MesaControleOut** (object) - The updated table entry object. ### Response Example ```json { "id": 1, "mesa_codigo": "M001", "produto_codigo": "P001", "quantidade": 3, "status": "Fechado" } ``` ``` ```APIDOC ## DELETE /data/mesas-controle/{item_id} ### Description Delete a specific table entry. ### Method DELETE ### Endpoint /data/mesas-controle/{item_id} ### Parameters #### Path Parameters - **item_id** (integer) - Required - The ID of the table entry to delete ### Response #### Success Response (200) - **message** (string) - Confirmation message. ### Response Example ```json { "message": "Table entry deleted successfully" } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.