swagger: '2.0'
info:
title: "SIFCO_REST_API"
version: "1.0"
termsOfService: "https://sifco.org/sobre-nosotros/"
contact:
email: "soporte@sifco.org"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
host: "<SERVER>"
schemes:
- https
- http
basePath: /<APPDIR>/rest
tags:
- name: "TClRefBancarias"
externalDocs:
description: "Manual SIFCO"
url: "https://sifco.atlassian.net/wiki/x/FADU"
produces:
- application/json
paths:
/TClRefBancarias/{ClCliCod}:
get:
tags:
- TClRefBancarias
default: SmartDevice Application operationId: "GetTClRefBancarias"
- namesummary: "ClCliCod"Consultar las Referencias Bancarias de un Cliente en el Sistema"
in: "path" parameters:
description: "Código- delin: Cliente"header
requiredname: trueContent-Type
type: "integerstring"
formatrequired: "int64"true
default: application/json
responses: - in: 200:header
descriptionname: "SuccessfulAuthorization
operation" schema:type: "string"
required: true
$ref: "#/definitions/TClRefBancarias" 400default: OAuth <Access Token>
description: "Bad request" - in: header
schemaname: GENEXUS-AGENT
$reftype: "#/definitions/GxJsonErrorstring"
401 required: true
descriptiondefault: "NotSmartDevice Authenticated"Application
- schemaname: "ClCliCod"
$refin: "#/definitions/GxJsonErrorpath"
404: description: "Código del Cliente"
description: "Data with the specified keyrequired: couldtrue
not be found" type: "integer"
schema format: "int64"
$ref responses:
"#/definitions/GxJsonError" 500200:
description: "InternalSuccessful server erroroperation"
schema:
$ref: "#/definitions/GxJsonErrorTClRefBancarias"
post: tags400:
- TClRefBancarias description: "Bad request"
operationId: "InsertTClRefBancarias" summaryschema:
"Insertar las Referencias Bancarias de un Cliente en el Sistema" parameters$ref: "#/definitions/GxJsonError"
- in401:
header description: name: Content-Type"Not Authenticated"
typeschema:
"string" required$ref: true"#/definitions/GxJsonError"
default404:
application/json - indescription: header"Data with the specified key could not be found"
name: Authorization schema:
type: "string" required: true$ref: "#/definitions/GxJsonError"
default500:
OAuth <Access Token> description: -"Internal in:server headererror"
nameschema:
GENEXUS-AGENT type$ref: "string#/definitions/GxJsonError"
requiredpost:
true tags:
default: SmartDevice Application - TClRefBancarias
- nameoperationId: "ClCliCodInsertTClRefBancarias"
insummary: "path"Insertar las Referencias Bancarias de un Cliente en el Sistema"
description: "Código del Cliente" parameters:
- requiredin: trueheader
typename: "integer"Content-Type
formattype: "int64string"
- namerequired: "TClRefBancarias"true
indefault: "body"application/json
- descriptionin: "SDTheader
of TClRefBancarias" requiredname: falseAuthorization
schematype: "string"
$refrequired: "#/definitions/TClRefBancarias"true
responses: default: OAuth <Access Token>
200: - descriptionin: "Successfulheader
operation" schemaname: GENEXUS-AGENT
$reftype: "#/definitions/TClRefBancarias"string"
201required: true
description default: "Created"SmartDevice Application
- schemaname: "ClCliCod"
$refin: "#/definitions/TClRefBancariaspath"
400: description: "Código description: "Bad request"del Cliente"
schemarequired: true
$reftype: "#/definitions/GxJsonErrorinteger"
401 format: "int64"
- descriptionname: "Not AuthenticatedTClRefBancarias"
schemain: "body"
$refdescription: "#/definitions/GxJsonError"SDT of TClRefBancarias"
404 required: false
descriptionschema:
"Data with the specified key could not be found" schema$ref: "#/definitions/TClRefBancarias"
$refresponses:
"#/definitions/GxJsonError" 500200:
description: "InternalSuccessful server erroroperation"
schema:
$ref: "#/definitions/GxJsonErrorTClRefBancarias"
put: tags201:
- TClRefBancarias
operationId description: "UpdateTClRefBancariasCreated"
summary: "Actualizar las Referencias Bancariasschema:
de un Cliente en el Sistema" parameters$ref: "#/definitions/TClRefBancarias"
- in400:
header description: name: Content-Type"Bad request"
typeschema:
"string" required$ref: true"#/definitions/GxJsonError"
default401:
application/json - indescription: header"Not Authenticated"
nameschema:
Authorization type$ref: "string#/definitions/GxJsonError"
required404:
true defaultdescription: OAuth"Data <Accesswith Token>the specified key could not be found"
- in: header schema:
name: GENEXUS-AGENT type$ref: "string#/definitions/GxJsonError"
500:
required: true description: "Internal server default:error"
SmartDevice Application -schema:
name: "ClCliCod" in$ref: "path#/definitions/GxJsonError"
put:
description tags:
"Código del Cliente" - TClRefBancarias
requiredoperationId: "UpdateTClRefBancarias"
true summary: "Actualizar las Referencias Bancarias type: "integer"
de un Cliente en el Sistema"
formatparameters:
"int64"
- namein: "TClRefBancarias"header
inname: "body"Content-Type
descriptiontype: "SDT of TClRefBancariasstring"
required: true
schemadefault: application/json
- in: header
$ref: "#/definitions/TClRefBancarias" name: Authorization
responses: type: "string"
200: descriptionrequired: "Successfultrue
operation" schemadefault: OAuth <Access Token>
- $refin: "#/definitions/TClRefBancarias" header
400name: GENEXUS-AGENT
description type: "Bad requeststring"
schemarequired: true
$refdefault: "#/definitions/GxJsonError"
SmartDevice Application
401: description- name: "Not AuthenticatedClCliCod"
schemain: "path"
$refdescription: "#/definitions/GxJsonErrorCódigo del Cliente"
404 required: true
descriptiontype: "Not foundinteger"
schemaformat: "int64"
- $refname: "#/definitions/GxJsonErrorTClRefBancarias"
409 in: "body"
description: "TClRefBancariasSDT wasof changedTClRefBancarias"
500: descriptionrequired: "Internal server error"true
schema:
$ref: "#/definitions/GxJsonErrorTClRefBancarias"
delete:
tagsresponses:
-200:
TClRefBancarias operationIddescription: "DeleteTClRefBancariasSuccessful operation"
summary: "Eliminar las Referencias Bancariasschema:
de un Cliente en el Sistema" parameters$ref: "#/definitions/TClRefBancarias"
- in400:
header namedescription: Content-Type
"Bad request"
type schema:
"string" required$ref: true"#/definitions/GxJsonError"
default401:
application/json - indescription: header"Not Authenticated"
nameschema:
Authorization type$ref: "string#/definitions/GxJsonError"
required404:
true defaultdescription: OAuth"Not <Accessfound"
Token> - inschema:
header name$ref: GENEXUS-AGENT"#/definitions/GxJsonError"
type: "string"409:
requireddescription: true"TClRefBancarias was changed"
default500:
SmartDevice Application - namedescription: "ClCliCodInternal server error"
inschema:
"path" description$ref: "Código del Cliente#/definitions/GxJsonError"
requireddelete:
true tags:
type: "integer" - TClRefBancarias
formatoperationId: "int64DeleteTClRefBancarias"
responsessummary: "Eliminar las Referencias Bancarias de un Cliente en 200:el Sistema"
descriptionparameters:
"Successful operation" - in: header
schema: name: Content-Type
$ref: "#/definitions/TClRefBancarias" 204:type: "string"
descriptionrequired: "Successfultrue
operation" schemadefault: application/json
- in: header
$ref: "#/definitions/TClRefBancarias" 400name: Authorization
description: "Bad requesttype: "string"
schemarequired: true
default: OAuth <Access $ref: "#/definitions/GxJsonError"Token>
- 401in: header
description name: "Not Authenticated"GENEXUS-AGENT
schematype: "string"
required: $ref: "#/definitions/GxJsonError"true
404default: SmartDevice Application
- descriptionname: "Not foundClCliCod"
schemain: "path"
$ref: "#/definitions/GxJsonError"description: "Código del Cliente"
required: true
type: "integer"
format: "int64"
responses:
500:
description: "Internal server error"
schema:
$ref: "#/definitions/GxJsonError"
security:
- OAuth2: []
ApiKeyAuth1: []
securityDefinitions:
OAuth2:
type: oauth2
flow: password
tokenUrl: https://test.sifco.org/DemoCoopGT/oauth/access_token
scopes:
Execute: Permite el método tipo GET
Insert: Permite el método tipo POST
Update: Permite el método tipo PUT
Delete: Permite el método tipo DELETE
FullControl: Permite el manejo de los Cuatro Métodos GET, POST, PUT,DELETE, sobre el Web Service
ApiKeyAuth1:
type: apiKey
in: header
name: granttype
definitions:
TClRefBancarias:
properties:
ClCliCod:
description: Código del Cliente 200:
description: "Successful operation"
schema:
$ref: "#/definitions/TClRefBancarias"
204:
description: "Successful operation"
schema:
$ref: "#/definitions/TClRefBancarias"
400:
description: "Bad request"
schema:
$ref: "#/definitions/GxJsonError"
401:
description: "Not Authenticated"
schema:
$ref: "#/definitions/GxJsonError"
404:
description: "Not found"
schema:
$ref: "#/definitions/GxJsonError"
500:
description: "Internal server error"
schema:
$ref: "#/definitions/GxJsonError"
security:
- OAuth2: []
ApiKeyAuth1: []
securityDefinitions:
OAuth2:
type: oauth2
flow: password
tokenUrl: https://test.sifco.org/DemoCoopGT/oauth/access_token
scopes:
Execute: Permite el método tipo GET
Insert: Permite el método tipo POST
Update: Permite el método tipo PUT
Delete: Permite el método tipo DELETE
FullControl: Permite el manejo de los Cuatro Métodos GET, POST, PUT,DELETE, sobre el Web Service
ApiKeyAuth1:
type: apiKey
in: header
name: granttype
definitions:
TClRefBancarias:
properties:
ClCliCod:
description: Código del Cliente
type: "integer"
format: "int64"
ClNomSocio:
description: Nombre del Cliente
type: "string"
RefBanUlt:
description: Ultima Referencia Bancaria
type: "integer"
format: "int32"
gx_md5_hash:
description: gx_md5_hash is an identifier for a specific version of a resource, it is used for optimistic concurrency check. It is required for update and delete operations and ignored on insert.
type: "string"
Level1:
$ref: "#/definitions/TClRefBancarias.Level1Item"
required:
- ClCliCod
TClRefBancarias.Level1Item:
properties:
RefBanCor:
description: Referencia Bancaria
type: "integer"
format: "int32"
ApBanCod:
description: Código Banco
type: "integer"
format: "int32"
ApBanNombre:
description: Nombre
type: "string"
RefBanTCta:
description: Tipo de Cuenta
type: "integer"
format: "int32"
RefBanNCta:
description: Número de la Cuenta
type: "string"
RefBanEstatus:
description: Estatus de la Referencia Bancaria
type: "string"
required:
- RefBanCor
x-gx-level: "TClRefBancarias"
GxJsonError:
properties:
error:
$ref: "#/definitions/GxJsonError.error"
GxJsonError.error:
properties:
code:
description: Código de Error
type: "string"
message:
description: Mensaje de Error
type: "string"
x-gx-level: "GxJsonError" |