Skip to content

PeterXiaosa/JavaWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaWeb

  • This is Java Web Project for playApp of Android.

TODO

    1. 获取及刷新AccessToken,完成之后需要在API调用中使用Token进行调用。(先加入Token的话不方便开发时候的测试)

Input of Server

  1. Can receive the parameter in url from client.
  2. Can receive the json data from client.
  3. Can receive the picture(jpg, png, jpeg) from form-data. (unfinished)
  4. Can get data from database. (unfinished)

Output of Server

  1. Response the json to client.
  2. Response picture from database to client. (unfinished)

/register

  • request way: post
  • data structure: json
  • request parameter:
  1. phone: phone to login
  2. password: password to login
  • eg: {"phone":"12345678901", "password":"111111"}
  • response parameter:
  1. status: 0 is successful, 1 is fail. 200
  2. msg: error text
  3. data: json object.

/contact

  • request way: post
  • data structure: json
  • request parameter:
  1. action: action is 0 if you want to query contacts, is 1 if you want insert data.
  2. phone: phone of login.
  3. contactName: needed when action is 1. The name of insert people.
  4. contactPhone: needed when action is 1. The phone of insert people.
  • eg: {"action":"0", "phone":"12345678901"}, {"action":"1", "phone":"12345678901", "contactName":"Peter", "contactPhone":"13245678909"}

/login

  • request way: post
  • data structure: json
  • request parameter:
  1. phone:phone to login
  2. password: password to login.
  • eg: {"phone":"12345678901", "password":"111111"}
  • response parameter:
  1. statuscode: 0 is successful, 1 is fail.
  2. content: error text

/protect/matchcode

  • request way: post
  • data structure: json
  • request parameter:
name type description
account String
  • response parameter:
name type description
matchcode String

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages