mammonbank / webapp

Modern web-based application which simulates real banking operations
MIT License
6 stars 0 forks source link

api requests examples #24

Open sdavydouski opened 8 years ago

sdavydouski commented 8 years ago

все POST-ом изначально запихиваем в базу это (эта инфа должна обязательно быть в базе) в ближайшем пуле я сделаю, чтобы оно автоматом ставило

localhost:3000/api/bank/info { "baseMoney": 100000000, "moneySupply": 900000000, "reserveRatio": 0.1 } порядок такой localhost:3000/api/credit/categories/ { "title": "Потребительский" }

localhost:3000/api/credit/types { "title": "Кредит-100", "description": "Very good interesting description of the credit type", "minSum": 100000, "maxSum": 50000000, "term": [1, 60], "interest": 0.48, "creditCategoryId": 1 }

localhost:3000/api/clients { "firstName": "Chuck", "lastName": "Norris", "patronymic": "God", "dateOfBirth": "25-Sep-1958", "phoneNumber": "000000000", "email": "norris@gmail.com", "password": "Iamawesome123", "passportNumber": "HB0000001", "passportIdNumber": "00001000HP01B2", "mothersMaidenName": "God" }

localhost:3000/api/credit/applications { "plannedSum": 300000, "plannedTerm": 20, "creditTypeId": 1, "clientId": 1 }

localhost:3000/api/credits/ { "sum": 18000000, "repaymentType": "DIFF", "startDate": "12-31-2014", "endDate": "12-31-2017", "creditTypeId": 1, "clientId": 1 }

localhost:3000/api/deposit/types/ { "title": "Вклад-45", "description": "Ну очень крутой вклад", "interest": 0.3, "minSum": 100000 }

localhost:3000/api/deposits { "startSum": 6000000, "depositTypeId": 1, "clientId": 1 }

Tocher commented 8 years ago

3

sdavydouski commented 8 years ago

возможно, что-то уже устарело