Skip to content

Commit

Permalink
feat: aligns with json:api
Browse files Browse the repository at this point in the history
feat: adds simulations endpoints to plans-parameters
feat: lists all proper OAuth scopes
fix: renames rental_investment endpoint to pinel
fix: factorizes various structures
  • Loading branch information
ahom authored and ahom committed May 3, 2021
1 parent bf5b36f commit 9a0f3b3
Show file tree
Hide file tree
Showing 37 changed files with 830 additions and 1,137 deletions.
Empty file modified models/BridgeLoan.v1.json
100755 → 100644
Empty file.
Empty file modified models/BudgetAmounts.v1.json
100755 → 100644
Empty file.
43 changes: 18 additions & 25 deletions models/BudgetSimulation.v1.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
{
"title": "BudgetSimulation",
"description": "Réponse d'un calcul de budget.",
"allOf": [
{
"$ref": "./SimulationMetadata.v1.json"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "BUDGET",
"description": "Type de simulation.",
"enum": [
"BUDGET"
]
},
"parameters": {
"$ref": "./BudgetParameters.v1.json"
},
"results": {
"$ref": "./BudgetResults.v1.json"
}
},
"required": [
"type",
"parameters"
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "BUDGET",
"description": "Type de simulation.",
"enum": [
"BUDGET"
]
},
"parameters": {
"$ref": "./BudgetParameters.v1.json"
},
"results": {
"$ref": "./BudgetResults.v1.json"
}
},
"required": [
"type",
"parameters"
]
}
12 changes: 3 additions & 9 deletions models/Case.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
"title": "Case",
"description": "Dossier emprunteur complet.",
"properties": {
"id": {
"description": "ID unique du case.",
"type": "string"
},
"etag": {
"type": "string"
"name": {
"type": "string",
"description": "Nom du dossier"
},
"actor": {
"oneOf": [
Expand Down Expand Up @@ -55,9 +52,6 @@
}
],
"description": "Projet."
},
"metadata": {
"$ref": "./CaseMetaData.v1.json"
}
}
}
38 changes: 0 additions & 38 deletions models/CaseMetaData.v1.json

This file was deleted.

16 changes: 0 additions & 16 deletions models/CaseResponse.v1.json

This file was deleted.

19 changes: 0 additions & 19 deletions models/CasesResponse.v1.json

This file was deleted.

Empty file modified models/Child.v1.json
100755 → 100644
Empty file.
43 changes: 18 additions & 25 deletions models/DebtConsolidationSimulation.v1.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
{
"title": "DebtConsolidationSimulation",
"description": "Réponse d'un rachat ou regroupement de crédits.",
"allOf": [
{
"$ref": "./SimulationMetadata.v1.json"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "DEBT_CONSOLIDATION",
"description": "Type de simulation.",
"enum": [
"DEBT_CONSOLIDATION"
]
},
"parameters": {
"$ref": "./DebtConsolidationParameters.v1.json"
},
"results": {
"$ref": "./DebtConsolidationResults.v1.json"
}
},
"required": [
"type",
"parameters"
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "DEBT_CONSOLIDATION",
"description": "Type de simulation.",
"enum": [
"DEBT_CONSOLIDATION"
]
},
"parameters": {
"$ref": "./DebtConsolidationParameters.v1.json"
},
"results": {
"$ref": "./DebtConsolidationResults.v1.json"
}
},
"required": [
"type",
"parameters"
]
}
16 changes: 0 additions & 16 deletions models/DeleteResponse.v1.json

This file was deleted.

15 changes: 0 additions & 15 deletions models/ErrorResponse.v1.json

This file was deleted.

Empty file modified models/FrenchIncomeTaxParameters.v1.json
100755 → 100644
Empty file.
Empty file modified models/FundingResultsSummary.v1.json
100755 → 100644
Empty file.
43 changes: 18 additions & 25 deletions models/FundingSimulation.v1.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
{
"title": "FundingSimulation",
"description": "Réponse d'un calcul de financement.",
"allOf": [
{
"$ref": "./SimulationMetadata.v1.json"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "FUNDING",
"description": "Type de simulation.",
"enum": [
"FUNDING"
]
},
"parameters": {
"$ref": "./FundingParameters.v1.json"
},
"results": {
"$ref": "./FundingResults.v1.json"
}
},
"required": [
"type",
"parameters"
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "FUNDING",
"description": "Type de simulation.",
"enum": [
"FUNDING"
]
},
"parameters": {
"$ref": "./FundingParameters.v1.json"
},
"results": {
"$ref": "./FundingResults.v1.json"
}
},
"required": [
"type",
"parameters"
]
}
Empty file modified models/HouseholdDetails.v1.json
100755 → 100644
Empty file.
Empty file modified models/Independant.v1.json
100755 → 100644
Empty file.
Empty file modified models/Insurance.v1.json
100755 → 100644
Empty file.
Empty file modified models/LightHouseholdDetails.v1.json
100755 → 100644
Empty file.
9 changes: 4 additions & 5 deletions models/Partner.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"title": "Partner",
"description": "Partenaire, et sa liste de contacts.",
"properties": {
"id": {
"description": "ID unique du partner.",
"type": "string"
},
"type": {
"$ref": "./PartnerType.v1.json"
},
Expand Down Expand Up @@ -44,5 +40,8 @@
"description": "Commentaire.",
"type": "string"
}
}
},
"required": [
"type"
]
}
16 changes: 0 additions & 16 deletions models/PartnerResponse.v1.json

This file was deleted.

19 changes: 0 additions & 19 deletions models/PartnersResponse.v1.json

This file was deleted.

Loading

0 comments on commit 9a0f3b3

Please sign in to comment.