Giter Club home page Giter Club logo

MuShare Server

Web service and application for the MuShare, a music share project.

API Document

Unified Authorization Method

  • Attach token to the http header Authorization
  • Example: Authorization: token

1. Account

(1) api/user/account/register

  • method: POST
  • body: {"mail":" ", "name":" ", "phone:" ", "password":" "}

(2) api/user/account/login

  • method: POST   + body: {"mail/name/phone":" ", "password":" "}

2. Friends

(1) api/user/friend/request

  • description: send a friend request
  • method: POST
  • body: {"friendId": " "}

(2) api/user/friend/request

  • description: agree a friend request
  • method: PUT
  • body: {"friendId": " "}

(3) api/user/friend/request

  • description: get the list of the friend request
  • method: GET

(4) api/user/friend/list

  • description: get the friend list
  • method: GET

(5) api/user/friend/delete

  • description: delete a friend
  • method: DELETE
  • body: {"friendId": " "}

3. Search

(1) api/user/search/stranger

  • decription: search a user
  • method: GET
  • query: ?keyword=

4. Pofile

(1) api/user/profile/get

  • description: get a user profile
  • method: GET
  • query: body: {"friendId": " "}

(2) api/user/profile/update

  • description: update profile
  • method: PUT
  • body: {"name"(not null):"", "avatar":"", "gender":"", "Birth":"", "Phone":"", " Description":""}

4. Sheet

(1) api/music/sheet/create

  • description: creare a sheet
  • method: POST
  • body: {"name": " ", "privilege": " "}
  • privilege has 3 types: public, private and friend

(2) api/music/sheet/delete

  • description: delete a sheet and delete all the audios belong to the sheet
  • method: DEL
  • body: {"name": " "}

(3) api/music/sheet/update

  • description: update the sheet name
  • method: PUT
  • body: {"name": " "(must), "updateName":" ","privilege":" "}

(4) api/music/sheet/list

  • description: get self sheets or get other's public or friend sheets
  • method: GET
  • url + ?ToID=?

(5) api/music/sheet/subscribe

5. Audio

(1) api/music/audio/add

  • description: add an audio to a sheet
  • method: POST
  • body: {"name": " ", "audioUrl": " "(unique), "imageUrl":" "(can be null), "sheetId": int, "artistId": int(need to modify)}
  • property "duration" still has some problem

(2) api/music/audio/delete

  • description: delete an audio
  • method: DEL
  • body: {"audioUrl": " "(unique)}

(3) api/music/audio/update

  • description: update an audio info.
  • method: PUT
  • body: {"name": " ", "audioUrl": " "(unique), "imageUrl":" "(can be null), "sheetId": int, "artistId": int(need to modify)}

(4) api/music/audio/list

  • description: get the audios of from a sheet
  • method: GET
  • url + ?SheetID=?

(5) api/music/migration/update

  • description: change the sheet id from a list of audioId.
  • method: PUT
  • body: {"idList":, "toSheetID":(int)}

MuShare Demands

用户系统(User System)

  1. 注册:邮箱/用户名(唯一)/手机号(可选)/密码(6位以上,数字,英文)
  2. 登陆(邮箱/用户名)
  3. 找回密码(邮箱/手机验证码)
  4. 个人页面(头像,用户名, 级别, 简介, 性别, 年龄, 生日, 设置歌单)

音乐功能

  1. 上传音乐
  2. 播放音乐(歌手, 专辑封面,专辑名称,歌曲名称,歌曲长度)
  3. 音乐列表, 歌单列表, 订阅列表
  4. subscribe和fork

好友功能

  1. 好友列表,添加,删除
  2. 设置自己音乐的分享权限(歌单为单位)所有人或者好友或者指定好友可见
  3. 好友推荐

搜索

  1. 关键词,歌曲, 歌单。
  2. 自己的歌,好友的歌,public

MuShare Group's Projects

audiocap icon audiocap

Sample code for recording system audio on macOS 14.4+

pluto icon pluto

An JWT based authentication & authorization service designed for microservices

rate icon rate

Web server of Rate Assistant - A rate search and subscription application.

rate-android icon rate-android

Android Client of Rate Assistant - A rate search and subscription application.

rate-ios icon rate-ios

iOS Client of Rate Assistant - A rate search and subscription application.

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.