-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathswagger.yml
52 lines (52 loc) · 1.42 KB
/
swagger.yml
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
swagger: '2.0'
info:
title: API RESTful for Lattes number validation
version: 0.1.0
description: This API RESTful allows you to validate the Lattes identification number.
schemes:
- http
produces:
- application/json
consumes:
- application/json
paths:
/lattes/{lattes_number}:
get:
tags:
- Lattes
description: Returns whether a lattes identifier number is valid or not.
parameters:
- name: lattes_number
in: path
description: Lattes id number
required: true
type: integer
responses:
'200':
description: Lattes successfully validated
schema:
type: object
properties:
id_lattes:
type: integer
description: Lattes id number.
message:
type: string
description: Validation message.
status:
type: boolean
description: Validation status.
'404':
description: Invalid Lattes identification number
schema:
type: object
properties:
id_lattes:
type: integer
description: Lattes id number.
message:
type: string
description: Error message.
status:
type: boolean
description: Validation status.