GithubHelp home page GithubHelp logo

swaggerserver's Introduction

Swagger服务端

Api

短信验证码

获取短信验证码

  • 请求URL:/swagger/code/{phone}
  • 请求方式:GET
  • 请求参数:phone=123456789

用户

根据手机号查询用户

  • 请求URL:/swagger/user/phone/{phone}
  • 请求方式:GET
  • 请求参数:phone=123456789

根据SwaggerId查询用户

  • 请求URL:/swagger/user/swaggerId/{swaggerid}
  • 请求方式:GET
  • 请求参数:swaggerid=t123

根据id查询用户

  • 请求URL:/swagger/user/id/{id}
  • 请求方式:GET
  • 请求参数:id=1

注册

  • 请求URL:/swagger/user
  • 请求方式:POST
  • 请求参数:
{
  "userId": 0,
  "userName": "测试112",
  "userSex": "",
  "userPassword": "888",
  "userPhone": "1112223111",
  "userSwaggerId": null,
  "userPortrait": "111.jpg",
  "userBio": null,
  "userCreateTime": null,
  "userModifyTime": null,
  "userLoginInfoId": 0,
  "userToken": null
}

登录

  • 请求URL:/swagger/user/auth
  • 请求方式:GET
  • 请求参数:account=test&password=test&ip=192.168.0.1&long=104.01&lat=30.40&device=000-2222011

修改密码

  • 请求URL:/swagger/user/password
  • 请求方式:PUT
  • 请求参数:
{
  "phone": 123123,
  "password": 233
}

修改SwaggerId

  • 请求URL:/swagger/user/swaggerId
  • 请求方式:PUT
  • 请求参数:
{
	"userId":2,
	"userName":"friend",
	"userSex":"",
	"userPassword":"123",
	"userPhone":"13851567613",
	"userSwaggerId":"friend",
	"userPortrait":"",
	"userBio":null,
	"userCreateTime":null,
	"userModifyTime":null,
	"userLoginInfoId":0,
	"userToken":null
}

修改性别

  • 请求URL:/swagger/user/sex
  • 请求方式:PUT
  • 请求参数:
{
	"userId":2,
	"userName":"friend",
	"userSex":"",
	"userPassword":"123",
	"userPhone":"13851567613",
	"userSwaggerId":"friend",
	"userPortrait":"",
	"userBio":null,
	"userCreateTime":null,
	"userModifyTime":null,
	"userLoginInfoId":0,
	"userToken":null
}

修改个性签名

  • 请求URL:/swagger/user/bio
  • 请求方式:PUT
  • 请求参数:
{
	"userId":2,
	"userName":"friend",
	"userSex":"",
	"userPassword":"123",
	"userPhone":"13851567613",
	"userSwaggerId":"friend",
	"userPortrait":"",
	"userBio":"内部测试",
	"userCreateTime":null,
	"userModifyTime":null,
	"userLoginInfoId":0,
	"userToken":null
}

修改头像

  • 请求URL:/swagger/user/portraitChange
  • 请求方式:PUT
  • 请求参数:
{
	"userId":2,
	"userName":"friend",
	"userSex":"",
	"userPassword":"123",
	"userPhone":"13851567613",
	"userSwaggerId":"friend",
	"userPortrait":"ttttttt.png",
	"userBio":"内部测试",
	"userCreateTime":null,
	"userModifyTime":null,
	"userLoginInfoId":0,
	"userToken":null
}

登出

  • 请求URL:/swagger/user/unauth
  • 请求方式:POST
  • 请求参数:{"loginId": 1}

头像

上传头像

  • 请求URL:/swagger/user/portrait
  • 请求方式:POST
  • 请求参数:
{
  "file": "file",
  "filename": "test.png"
}

下载头像

  • 请求URL:/swagger/user/portrait/{filename}
  • 请求方式:GET
  • 请求参数:filename=test.png

附近的人

获取附近的用户

  • 请求URL:/swagger/nearby/list
  • 请求方式:GET
  • 请求参数:lon=-122.08400000000002&lat=37.421998333333335&limit=10000&name=test&sex=男

好友管理

查询好友关系

  • 请求URL:/swagger/friend/filter
  • 请求方式:GET
  • 请求参数:mainUserId=1&friendUserId=2

建立好友关系

  • 请求URL:/swagger/friend/making
  • 请求方式:POST
  • 请求参数:
{
	"id": 0,
	"mainUserId": 11,
	"friendUserId": 12,
	"remarkName": null,
	"groupName": null,
	"createTime": null,
	"modifyTime": null
}

修改好友关系

  • 请求URL:/swagger/friend/modification
  • 请求方式:PUT
  • 请求参数:
{
	"id": 2,
	"mainUserId": 2,
	"friendUserId": 1,
	"remarkName": "嘿嘿",
	"groupName": "不解释",
	"createTime": null,
	"modifyTime": null
}

删除好友

  • 请求URL:/swagger/friend/release
  • 请求方式:DELETE
  • 请求参数:
{
	"id": 2,
	"mainUserId": 2,
	"friendUserId": 1,
	"remarkName": "嘿嘿",
	"groupName": "不解释",
	"createTime": null,
	"modifyTime": null
}

好友请求

发布请求

  • 请求URL:/swagger/request
  • 请求方式:POST
  • 请求参数:
{
	"reqId": 0,
	"reqMainId": 3,
	"reqSubId": 6,
	"reqMsg": "内部测试",
	"reqCode": 0
}

查询请求列表

  • 请求URL:/swagger/request/list
  • 请求方式:GET
  • 请求参数:mainId=3

更新请求信息

  • 请求URL:/swagger/request/operation
  • 请求方式:PUT
  • 请求参数:
{
	"reqId": 2,
	"reqMainId": 3,
	"reqSubId": 4,
	"reqMsg": "内部测试",
	"reqCode": 1
}

Apk

Apk上传

  • 请求URL:/swagger/apk
  • 请求方式:POST
  • 请求参数:
{
    "apk": "file",
    "apkCode": "v1.0.0",
    "apkName": "test.apk",
    "apkDesc": "描述"
}

获取最新Apk

  • 请求URL:/swagger/apk/latest
  • 请求方式:GET
  • 请求参数:无

下载Apk

  • 请求URL:/swagger/apk/{filename}
  • 请求方式:GET
  • 请求参数:filename

swaggerserver's People

Contributors

zhangwenxuan322 avatar

Stargazers

ross King avatar  avatar

Watchers

James Cloos avatar

Forkers

sixminutestogg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.