联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2024-03-09 10:06


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
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp