Created
July 11, 2017 14:13
-
-
Save FSevaistre/a12b1b6fda375c7400aa2b21e4ab8237 to your computer and use it in GitHub Desktop.
swag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "API V1", | |
"version": "v1" | |
}, | |
"paths": { | |
"/api/v0/mortgage_projects/{id}/mortgage_settings": { | |
"put": { | |
"summary": "Updates the settings", | |
"tags": [ | |
"MortgageSettings" | |
], | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"type": "string", | |
"required": true | |
}, | |
{ | |
"name": "settings", | |
"in": "body", | |
"schema": { | |
"type": "object", | |
"properties": { | |
"smoothed": { | |
"type": "boolean" | |
}, | |
"prefinancingKind": { | |
"type": "string" | |
}, | |
"postponedInterests": { | |
"type": "boolean" | |
}, | |
"steps": { | |
"type": "array" | |
}, | |
"franchise_duration": { | |
"type": "integer" | |
}, | |
"differential_indebtedness": { | |
"type": "boolean" | |
} | |
} | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "mortgage_settings updated" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment