Skip to content

Instantly share code, notes, and snippets.

@FSevaistre
Created July 11, 2017 14:13
Show Gist options
  • Save FSevaistre/a12b1b6fda375c7400aa2b21e4ab8237 to your computer and use it in GitHub Desktop.
Save FSevaistre/a12b1b6fda375c7400aa2b21e4ab8237 to your computer and use it in GitHub Desktop.
swag
{
"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