A3ERP API
English
English
  • Quick Start
    • Initial configuration
    • Installation
  • Versions
  • Documentation
    • API Reference
      • Api
      • Validation
      • Email
      • Master
        • Parameters
      • Document
        • Parameters
      • Various
      • Stock movements
      • Stock Reserves
      • Expeditions
      • Links
      • Stock
      • Portfolio
      • Prices
      • Stored Procedures
      • View
      • Listing
      • FastReport
      • Download Files
      • List Linked Folders
Con tecnología de GitBook
En esta página

¿Te fue útil?

  1. Documentation
  2. API Reference

Stored Procedures

Allows to execute a database stored procedure

AnteriorPricesSiguienteView

Última actualización hace 2 años

¿Te fue útil?

POST calls

Stored Procedure Body

Executing a stored procedure

https://server:5555/api/procalm/procedimientodeprueba

The possible values for the datatype are: string/integer/boolean/float/currency/word/date/time

The possible values for the address are: entrada/salida/entradasalida/retorno

{
    "parametros":
        [
            {
            "nombre": "codigo",
            "tipo": "string",
            "direccion": "entrada",
            "longitud": "8",
            "defecto": "",
            "valor": " 1"
            },
            {
            "nombre": "riesgo",
            "tipo": "float",
            "direccion": "salida",
            "longitud": "0",
            "defecto": "0",
            "valor": "0"
            }
        ]
}
  • POST calls
  • POSTExecute stored procedure

Execute stored procedure

post

Allows to execute a stored procedure from the database, passing parameters to it In the case of calls to stored procedures they will execute the code they have without restrictions Only stored procedures that have been created in any dictionary other than JNCAPI can be executed.

Parámetros de ruta
procedimientostringRequerido

The name of the stored procedure in SQL server

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
Respuestas
200
Result of the stored procedure that has been selected.
post
POST /api/procalm/{procedimiento} HTTP/1.1
Host: server:<port>
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 131

{
  "json": {
    "parametros": [
      {
        "nombre": "text",
        "tipo": "string",
        "direccion": "entrada",
        "longitud": "text",
        "defecto": "text",
        "valor": "text"
      }
    ]
  }
}
200

Result of the stored procedure that has been selected.

Sin contenido