首页 > > 详细

辅导 program、讲解 java,c++程序语言

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

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!