openapi
API / @publicodes/rest-api / openapi
const openapi: object = openapiJson;
Type declaration
Name | Type | Default value | Defined in |
---|---|---|---|
components | object | - | openapi.codegen.json:8 |
components.schemas | object | - | openapi.codegen.json:9 |
components.schemas.EvaluateBody | object | - | openapi.codegen.json:48 |
components.schemas.EvaluateBody.properties | object | - | openapi.codegen.json:53 |
components.schemas.EvaluateBody.properties.expressions | object | - | openapi.codegen.json:54 |
components.schemas.EvaluateBody.properties.expressions.$ref | string | ”#/components/schemas/Expressions” | openapi.codegen.json:55 |
components.schemas.EvaluateBody.properties.situation | object | - | openapi.codegen.json:57 |
components.schemas.EvaluateBody.properties.situation.$ref | string | ”#/components/schemas/Situation” | openapi.codegen.json:58 |
components.schemas.EvaluateBody.required | string [] | - | openapi.codegen.json:50 |
components.schemas.EvaluateBody.type | string | “object” | openapi.codegen.json:49 |
components.schemas.EvaluateResponse | object | - | openapi.codegen.json:62 |
components.schemas.EvaluateResponse.description | string | “Schéma retourné par l’endpoint evaluate” | openapi.codegen.json:63 |
components.schemas.EvaluateResponse.oneOf | (object | object | object )[] | - | openapi.codegen.json:64 |
components.schemas.Expressions | object | - | openapi.codegen.json:10 |
components.schemas.Expressions.description | string | “Une expression ou un tableau d’expressions Publicodes” | openapi.codegen.json:11 |
components.schemas.Expressions.oneOf | (object | object )[] | - | openapi.codegen.json:12 |
components.schemas.InputValidationError | object | - | openapi.codegen.json:141 |
components.schemas.InputValidationError.items | object | - | openapi.codegen.json:143 |
components.schemas.InputValidationError.items.properties | object | - | openapi.codegen.json:145 |
components.schemas.InputValidationError.items.properties.dataPath | object | - | openapi.codegen.json:149 |
components.schemas.InputValidationError.items.properties.dataPath.type | string | “string” | openapi.codegen.json:150 |
components.schemas.InputValidationError.items.properties.keyword | object | - | openapi.codegen.json:146 |
components.schemas.InputValidationError.items.properties.keyword.type | string | “string” | openapi.codegen.json:147 |
components.schemas.InputValidationError.items.properties.message | object | - | openapi.codegen.json:155 |
components.schemas.InputValidationError.items.properties.message.type | string | “string” | openapi.codegen.json:156 |
components.schemas.InputValidationError.items.properties.params | object | - | openapi.codegen.json:158 |
components.schemas.InputValidationError.items.properties.params.additionalProperties | object | - | openapi.codegen.json:160 |
components.schemas.InputValidationError.items.properties.params.additionalProperties.type | string | “string” | openapi.codegen.json:161 |
components.schemas.InputValidationError.items.properties.params.type | string | “object” | openapi.codegen.json:159 |
components.schemas.InputValidationError.items.properties.schemaPath | object | - | openapi.codegen.json:152 |
components.schemas.InputValidationError.items.properties.schemaPath.type | string | “string” | openapi.codegen.json:153 |
components.schemas.InputValidationError.items.type | string | “object” | openapi.codegen.json:144 |
components.schemas.InputValidationError.type | string | “array” | openapi.codegen.json:142 |
components.schemas.PublicodesExpression | object | - | openapi.codegen.json:32 |
components.schemas.PublicodesExpression.description | string | “Une expression Publicodes” | openapi.codegen.json:33 |
components.schemas.PublicodesExpression.oneOf | (object | object )[] | - | openapi.codegen.json:34 |
components.schemas.Rule | object | - | openapi.codegen.json:167 |
components.schemas.Rule.properties | object | - | openapi.codegen.json:169 |
components.schemas.Rule.properties.nodeKind | object | - | openapi.codegen.json:173 |
components.schemas.Rule.properties.nodeKind.type | string | “string” | openapi.codegen.json:174 |
components.schemas.Rule.properties.rawNode | object | - | openapi.codegen.json:176 |
components.schemas.Rule.properties.rawNode.additionalProperties | object | - | openapi.codegen.json:183 |
components.schemas.Rule.properties.rawNode.additionalProperties.type | string | “object” | openapi.codegen.json:184 |
components.schemas.Rule.properties.rawNode.properties | object | - | openapi.codegen.json:178 |
components.schemas.Rule.properties.rawNode.properties.question | object | - | openapi.codegen.json:179 |
components.schemas.Rule.properties.rawNode.properties.question.type | string | “string” | openapi.codegen.json:180 |
components.schemas.Rule.properties.rawNode.type | string | “object” | openapi.codegen.json:177 |
components.schemas.Rule.properties.replacements | object | - | openapi.codegen.json:187 |
components.schemas.Rule.properties.replacements.items | object | - | openapi.codegen.json:189 |
components.schemas.Rule.properties.replacements.items.type | string | “object” | openapi.codegen.json:190 |
components.schemas.Rule.properties.replacements.type | string | “array” | openapi.codegen.json:188 |
components.schemas.Rule.properties.suggestions | object | - | openapi.codegen.json:193 |
components.schemas.Rule.properties.suggestions.type | string | “object” | openapi.codegen.json:194 |
components.schemas.Rule.properties.title | object | - | openapi.codegen.json:170 |
components.schemas.Rule.properties.title.type | string | “string” | openapi.codegen.json:171 |
components.schemas.Rule.type | string | “object” | openapi.codegen.json:168 |
components.schemas.Rules | object | - | openapi.codegen.json:198 |
components.schemas.Rules.additionalProperties | object | - | openapi.codegen.json:200 |
components.schemas.Rules.additionalProperties.$ref | string | ”#/components/schemas/Rule” | openapi.codegen.json:201 |
components.schemas.Rules.type | string | “object” | openapi.codegen.json:199 |
components.schemas.Situation | object | - | openapi.codegen.json:25 |
components.schemas.Situation.additionalProperties | object | - | openapi.codegen.json:28 |
components.schemas.Situation.additionalProperties.$ref | string | ”#/components/schemas/PublicodesExpression” | openapi.codegen.json:29 |
components.schemas.Situation.description | string | “La situation avec laquelle l’expression ou les expressions seront évaluées” | openapi.codegen.json:26 |
components.schemas.Situation.type | string | “object” | openapi.codegen.json:27 |
info | object | - | openapi.codegen.json:3 |
info.description | string | “Cet API expose vos règles Publicodes.” | openapi.codegen.json:6 |
info.title | string | “Publicode API” | openapi.codegen.json:4 |
info.version | string | “1.0.0-beta.41” | openapi.codegen.json:5 |
openapi | string | “3.0.0” | openapi.codegen.json:2 |
paths | object | - | openapi.codegen.json:206 |
paths./evaluate | object | - | openapi.codegen.json:207 |
paths./evaluate.post | object | - | openapi.codegen.json:208 |
paths./evaluate.post.operationId | string | “evaluate” | openapi.codegen.json:212 |
paths./evaluate.post.requestBody | object | - | openapi.codegen.json:214 |
paths./evaluate.post.requestBody.content | object | - | openapi.codegen.json:216 |
paths./evaluate.post.requestBody.content.application/json | object | - | openapi.codegen.json:217 |
paths./evaluate.post.requestBody.content.application/json.schema | object | - | openapi.codegen.json:218 |
paths./evaluate.post.requestBody.content.application/json.schema.$ref | string | ”#/components/schemas/EvaluateBody” | openapi.codegen.json:219 |
paths./evaluate.post.requestBody.required | boolean | true | openapi.codegen.json:215 |
paths./evaluate.post.responses | object | - | openapi.codegen.json:224 |
paths./evaluate.post.responses.200 | object | - | openapi.codegen.json:225 |
paths./evaluate.post.responses.200.content | object | - | openapi.codegen.json:227 |
paths./evaluate.post.responses.200.content.application/json | object | - | openapi.codegen.json:228 |
paths./evaluate.post.responses.200.content.application/json.schema | object | - | openapi.codegen.json:229 |
paths./evaluate.post.responses.200.content.application/json.schema.$ref | string | ”#/components/schemas/EvaluateResponse” | openapi.codegen.json:230 |
paths./evaluate.post.responses.200.description | string | “La requête a réussi” | openapi.codegen.json:226 |
paths./evaluate.post.responses.400 | object | - | openapi.codegen.json:235 |
paths./evaluate.post.responses.400.content | object | - | openapi.codegen.json:237 |
paths./evaluate.post.responses.400.content.application/json | object | - | openapi.codegen.json:238 |
paths./evaluate.post.responses.400.content.application/json.schema | object | - | openapi.codegen.json:239 |
paths./evaluate.post.responses.400.content.application/json.schema.$ref | string | ”#/components/schemas/InputValidationError” | openapi.codegen.json:240 |
paths./evaluate.post.responses.400.description | string | “Erreur de validation d’entrée” | openapi.codegen.json:236 |
paths./evaluate.post.summary | string | “Evalue une expression avec un situation donnée” | openapi.codegen.json:213 |
paths./evaluate.post.tags | string [] | - | openapi.codegen.json:209 |
paths./rules | object | - | openapi.codegen.json:248 |
paths./rules.get | object | - | openapi.codegen.json:249 |
paths./rules.get.operationId | string | “rules” | openapi.codegen.json:253 |
paths./rules.get.responses | object | - | openapi.codegen.json:255 |
paths./rules.get.responses.200 | object | - | openapi.codegen.json:256 |
paths./rules.get.responses.200.content | object | - | openapi.codegen.json:258 |
paths./rules.get.responses.200.content.application/json | object | - | openapi.codegen.json:259 |
paths./rules.get.responses.200.content.application/json.schema | object | - | openapi.codegen.json:260 |
paths./rules.get.responses.200.content.application/json.schema.$ref | string | ”#/components/schemas/Rules” | openapi.codegen.json:261 |
paths./rules.get.responses.200.description | string | “La requête a réussi” | openapi.codegen.json:257 |
paths./rules.get.responses.400 | object | - | openapi.codegen.json:266 |
paths./rules.get.responses.400.content | object | - | openapi.codegen.json:268 |
paths./rules.get.responses.400.content.application/json | object | - | openapi.codegen.json:269 |
paths./rules.get.responses.400.content.application/json.schema | object | - | openapi.codegen.json:270 |
paths./rules.get.responses.400.content.application/json.schema.$ref | string | ”#/components/schemas/InputValidationError” | openapi.codegen.json:271 |
paths./rules.get.responses.400.description | string | “Erreur de validation d’entrée” | openapi.codegen.json:267 |
paths./rules.get.summary | string | “Retourne toutes les règles” | openapi.codegen.json:254 |
paths./rules.get.tags | string [] | - | openapi.codegen.json:250 |
paths./rules/{rule} | object | - | openapi.codegen.json:279 |
paths./rules/{rule}.get | object | - | openapi.codegen.json:280 |
paths./rules/{rule}.get.operationId | string | “rules-rule” | openapi.codegen.json:284 |
paths./rules/{rule}.get.parameters | object [] | - | openapi.codegen.json:286 |
paths./rules/{rule}.get.responses | object | - | openapi.codegen.json:297 |
paths./rules/{rule}.get.responses.200 | object | - | openapi.codegen.json:298 |
paths./rules/{rule}.get.responses.200.content | object | - | openapi.codegen.json:300 |
paths./rules/{rule}.get.responses.200.content.application/json | object | - | openapi.codegen.json:301 |
paths./rules/{rule}.get.responses.200.content.application/json.schema | object | - | openapi.codegen.json:302 |
paths./rules/{rule}.get.responses.200.content.application/json.schema.oneOf | (… | …)[] | - | openapi.codegen.json:303 |
paths./rules/{rule}.get.responses.200.description | string | “La requête a réussi” | openapi.codegen.json:299 |
paths./rules/{rule}.get.responses.400 | object | - | openapi.codegen.json:325 |
paths./rules/{rule}.get.responses.400.content | object | - | openapi.codegen.json:327 |
paths./rules/{rule}.get.responses.400.content.application/json | object | - | openapi.codegen.json:328 |
paths./rules/{rule}.get.responses.400.content.application/json.schema | object | - | openapi.codegen.json:329 |
paths./rules/{rule}.get.responses.400.content.application/json.schema.$ref | string | ”#/components/schemas/InputValidationError” | openapi.codegen.json:330 |
paths./rules/{rule}.get.responses.400.description | string | “Erreur de validation d’entrée” | openapi.codegen.json:326 |
paths./rules/{rule}.get.summary | string | “Retourne la règle demandée” | openapi.codegen.json:285 |
paths./rules/{rule}.get.tags | string [] | - | openapi.codegen.json:281 |