-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtalklawbrazil.leonardodameto.repl.co.yaml
66 lines (61 loc) · 2.12 KB
/
talklawbrazil.leonardodameto.repl.co.yaml
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
openapi: 3.0.1
info:
title: PL 2630 Plugin
description: The user can inquire and extract pertinent information about laws and bills being considered in Brazil. It is essential to first execute the get_laws_dict function to acquire the keys that can be utilized in the law_key parameter.
version: 'v1'
servers:
- url: https://talklawbrazil.leonardodameto.repl.co
paths:
/dict_laws:
get:
operationId: get_laws_dict
summary: This function returns a dictionary containing the available bills, along with general information about them.
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/dict_laws_response'
/law/{law_key}/{question}:
get:
operationId: get_law_info
summary: This function returns detailed text information about a specific bill, as requested by the user.
parameters:
- in: path
name: law_key
schema:
type: string
required: true
description: Key from 'dict_laws_dict' dictionary that corresponds to the user's question.
- in: path
name: question
schema:
type: string
required: true
description: An objective question in Portuguese should be asked about the bill. Do not include the name of the project in the question.
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/get_pl_info_Response'
components:
schemas:
get_pl_info_Response:
type: object
properties:
todos:
type: array
items:
type: string
description: This refers to the relevant content pertaining to the bill, designed to align with the specific question posed by the user.
dict_laws_response:
type: object
properties:
todos:
type: array
items:
type: string
description: This is a dictionary containing available laws, along with general information about them.