-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtilidades.raml
113 lines (106 loc) · 3.24 KB
/
Utilidades.raml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#%RAML 1.0
#===============================================================
# References:
# - RAML Specification - http://raml.org/spec.html
# - RAML Projects - http://raml.org/projects.html
# - RAML Tools - http://www.apihub.com/raml-tools
#===============================================================
title: Empleados API
version: v1
baseUri: http://api.mtis.org
#List of media type to support
#mediaType: application/json
#List of protocols to support for baseUri
#protocols: [ HTTP, HTTPS ]
#===============================================================
# API documentation
#===============================================================
types:
Error:
description: Objeto utilziado para transmitir un mensaje y codigo en caso de algun error.
type: object
properties:
code: integer
message: string
#===============================================================
# API documentation
#===============================================================
documentation:
- title: Gestion Empleados
content: | #Esto es un prototipo de API para la Gestion de Empleados de una empresa.
#===============================================================
# API resource definitions
#===============================================================
/utilidades:
/validarNIF:
get:
displayName: validarNIF
description: Valida un NIF
queryParameters:
RestKey:
description: Una restkey valida almacenada en la bdd (Concede permisos para realizar al operacion)
type: string
required: true
DNI:
description: DNI a validar
type: string
required: true
responses:
200:
description: El DNI es valido
body:
application/json:
type: boolean
400:
description: El DNI o restkey no validos
body:
application/json:
type: Error
/validarIBAN:
get:
displayName: validarIBAN
description: Valida un IBAN
queryParameters:
RestKey:
description: Una restkey valida almacenada en la bdd (Concede permisos para realizar al operacion)
type: string
required: true
IBAN:
description: IBAN a validar
type: string
required: true
responses:
200:
description: El IBAN es valido
body:
application/json:
type: boolean
400:
description: El IBAN o restkey no validos
body:
application/json:
type: Error
/validarNAFSS:
get:
displayName: validarNAFSS
description: Valida un NAFSS
queryParameters:
RestKey:
description: Una restkey valida almacenada en la bdd (Concede permisos para realizar al operacion)
type: string
required: true
NAFSS:
description: NAFSS a validar
type: string
required: true
responses:
200:
description: El NAFSS es valido
body:
application/json:
type: boolean
400:
description: El NAFSS o restkey no validos
body:
application/json:
type: Error