Hw 1 Server overview
Inspect all tests and fill out empty methods to solve.
Will require parsing url, reading/writing http responses, serializing JSON api objects.
Endpoints
● /createUser
○ POST creates new user via userDto
● /transfer
○ POST sends funds from one user to another
○ user must have enough funds
○ both users must exists
● /getTransactions
○ returns all transactions for a user
● /createDeposit
○ POST uses TransactionDto
○ Adds funds to a user
● All others return 404
Hints and FAQ
● Start with parsing http string and parsing url
● Do not try encoding or decoding json yourself
● url structure: https://en.wikipedia.org/wiki/URL
● You do not need to run the server to pass the tests
● You do need to run the server to interact with it via postman
版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。