You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Describe the situation (persons and entities). Add the variable you wish to calculate in the proper entity, with null as the value. Learn more in our official documentation: https://openfisca.org/doc/openfisca-web-api/input-output-data.html"
47
46
required: true
48
-
schema:
49
-
$ref: "#/definitions/SituationInput"
47
+
content:
48
+
application/json:
49
+
schema:
50
+
$ref: "#/definitions/SituationInput"
50
51
responses:
51
52
200:
52
53
description: "The calculation result is sent back in the response body"
54
+
content:
55
+
application/json:
56
+
schema:
57
+
$ref: "#/definitions/SituationOutput"
53
58
headers:
54
-
$ref: "#/components/headers"
55
-
schema:
56
-
$ref: "#/definitions/SituationOutput"
59
+
schema:
60
+
$ref: "#/components/headers"
57
61
404:
58
62
description: "A variable mentioned in the input situation does not exist in the loaded tax and benefit system. Details are sent back in the response body"
59
63
headers:
60
-
$ref: "#/components/headers"
64
+
schema:
65
+
$ref: "#/components/headers"
61
66
400:
62
67
description: "The request is invalid. Details about the error are sent back in the response body"
63
68
headers:
64
-
$ref: "#/components/headers"
69
+
schema:
70
+
$ref: "#/components/headers"
71
+
65
72
/parameters:
66
73
get:
67
74
tags:
68
75
- "Parameters"
69
76
summary: "List all available parameters"
70
77
operationId: "getParameters"
71
-
produces:
72
-
- "application/json"
73
78
responses:
74
79
200:
75
80
description: "The list of parameters is sent back in the response body"
81
+
content:
82
+
application/json:
83
+
schema:
84
+
$ref: "#/definitions/Parameters"
76
85
headers:
77
-
$ref: "#/components/headers"
78
-
schema:
79
-
$ref: "#/definitions/Parameters"
86
+
schema:
87
+
$ref: "#/components/headers"
88
+
80
89
/parameter/{parameterID}:
81
90
get:
82
91
tags:
83
92
- "Parameters"
84
93
summary: "Get information about a specific parameter"
85
94
operationId: "getParameter"
86
-
produces:
87
-
- "application/json"
88
95
parameters:
89
96
- name: "parameterID"
90
97
in: "path"
91
98
description: "ID of parameter. IDs can be obtained by enumerating the /parameters endpoint"
92
99
required: true
93
-
type: "string"
100
+
schema:
101
+
type: "string"
94
102
responses:
95
103
200:
96
104
description: "The requested parameter's information is sent back in the response body"
105
+
content:
106
+
application/json:
107
+
schema:
108
+
$ref: "#/definitions/Parameter"
97
109
headers:
98
-
$ref: "#/components/headers"
99
-
schema:
100
-
$ref: "#/definitions/Parameter"
110
+
schema:
111
+
$ref: "#/components/headers"
101
112
404:
102
113
description: "The requested parameter does not exist"
103
114
headers:
104
-
$ref: "#/components/headers"
115
+
schema:
116
+
$ref: "#/components/headers"
117
+
105
118
/variables:
106
119
get:
107
120
tags:
108
121
- "Variables"
109
122
summary: "List all available variables"
110
123
operationId: "getVariables"
111
-
produces:
112
-
- "application/json"
113
124
responses:
114
125
200:
115
126
description: "The list of variables is sent back in the response body"
127
+
content:
128
+
application/json:
129
+
schema:
130
+
$ref: "#/definitions/Variables"
116
131
headers:
117
-
$ref: "#/components/headers"
118
-
schema:
119
-
$ref: "#/definitions/Variables"
132
+
schema:
133
+
$ref: "#/components/headers"
134
+
120
135
/variable/{variableID}:
121
136
get:
122
137
tags:
123
138
- "Variables"
124
139
summary: "Get information about a specific variable"
125
140
operationId: "getVariable"
126
-
produces:
127
-
- "application/json"
128
141
parameters:
129
142
- name: "variableID"
130
143
in: "path"
131
144
description: "ID of a variable. IDs can be obtained by enumerating the /variables endpoint."
132
145
required: true
133
-
type: "string"
146
+
schema:
147
+
type: "string"
134
148
responses:
135
149
200:
136
150
description: "The requested variable's information is sent back in the response body"
151
+
content:
152
+
application/json:
153
+
schema:
154
+
$ref: "#/definitions/Variable"
137
155
headers:
138
-
$ref: "#/components/headers"
139
-
schema:
140
-
$ref: "#/definitions/Variable"
156
+
schema:
157
+
$ref: "#/components/headers"
141
158
404:
142
159
description: "The requested variable does not exist"
143
160
headers:
144
-
$ref: "#/components/headers"
161
+
schema:
162
+
$ref: "#/components/headers"
163
+
145
164
/entities:
146
165
get:
147
166
tags:
148
167
- "Entities"
149
168
summary: "List all available Entities"
150
169
operationId: "getVariables"
151
-
produces:
152
-
- "application/json"
153
170
responses:
154
171
200:
155
172
description: "The list of the entities as well as their information is sent back in the response body"
173
+
content:
174
+
application/json:
175
+
schema:
176
+
$ref: "#/definitions/Entities"
156
177
headers:
157
-
$ref: "#/components/headers"
158
-
schema:
159
-
$ref: "#/definitions/Entities"
178
+
schema:
179
+
$ref: "#/components/headers"
180
+
160
181
/trace:
161
182
post:
162
183
summary: "Explore a simulation's steps in details."
163
184
tags:
164
185
- Calculations
165
186
operationId: "trace"
166
-
consumes:
167
-
- "application/json"
168
-
produces:
169
-
- "application/json"
170
-
parameters:
171
-
- in: "body"
172
-
name: "Situation"
187
+
requestBody:
173
188
description: "Describe the situation (persons and entities). Add the variable you wish to calculate in the proper entity, with null as the value."
174
189
required: true
175
-
schema:
176
-
$ref: "#/definitions/SituationInput"
190
+
content:
191
+
application/json:
192
+
schema:
193
+
$ref: "#/definitions/SituationInput"
177
194
responses:
178
195
200:
179
196
description: "The calculation details are sent back in the response body"
197
+
content:
198
+
application/json:
199
+
schema:
200
+
$ref: "#/definitions/Trace"
180
201
headers:
181
-
$ref: "#/components/headers"
182
-
schema:
183
-
$ref: "#/definitions/Trace"
202
+
schema:
203
+
$ref: "#/components/headers"
184
204
404:
185
205
description: "A variable mentioned in the input situation does not exist in the loaded tax and benefit system. Details are sent back in the response body"
186
206
headers:
187
-
$ref: "#/components/headers"
207
+
schema:
208
+
$ref: "#/components/headers"
188
209
400:
189
210
description: "The request is invalid. Details about the error are sent back in the response body"
190
211
headers:
191
-
$ref: "#/components/headers"
212
+
schema:
213
+
$ref: "#/components/headers"
214
+
192
215
/spec:
193
216
get:
194
217
summary: Provide the API documentation in an OpenAPI format
195
218
tags:
196
219
- Documentation
197
220
operationId: spec
198
-
produces:
199
-
- application/json
200
221
responses:
201
222
200:
202
223
description: The API documentation is sent back in the response body
0 commit comments