Komma_Project

Login

POST http://www.kommaa.shop/users/login

Client 로그인 요청.

Request Body

{ 
  "accessToken": accessToken, 
  "message": "Login successfully"
}

Logout

POST http://www.kommaa.shop/users/logout

Client 로그아웃 요청.

Headers

{ "message": "Logout successfully" }

signup

POST http://www.kommaa.shop/users/signup

Client 유저 회원 가입 요청.

Request Body

{ "message": "Sign successfully" }

UserInfo

GET http://www.kommaa.shop/users/userinfo

Client 로그인 후 생성 된 AccessToken으로 유저 정보 요청

Headers

{
    "userInfo": {
        "id": 22,
        "email": "bsjp9400@gmail.com",
        "username": "배석재",
        "darkmode": false,
        "sitecolor": "teal"
    },
    "playlists": [
        {
            "id": 7,
            "title": "배석재꺼1",
            "icon": "https://i.imgur.com/nHbNWeR.png",
            "play": false,
            "savesongs": [
                {
                    "savesongId": 11,
                    "id": 3,
                    "iconImg": "https://i.imgur.com/gnBFt6F.png",
                    "title": "도마",
                    "soundFile": "http://www.kommaa.shop/sounds/cooking.mp3",
                    "defaultVolume": 0,
                    "play": true
                },
                {
                    "savesongId": 12,
                    "id": 5,
                    "iconImg": "https://i.imgur.com/WyPSnld.png",
                    "title": "보글보글",
                    "soundFile": "http://www.kommaa.shop/sounds/bubble.mp3",
                    "defaultVolume": 0,
                    "play": true
                }
            ]
        },
        {
            "id": 8,
            "title": "배석재꺼2",
            "icon": "https://i.imgur.com/E2u4I6X.png",
            "play": false,
            "savesongs": [
                {
                    "savesongId": 13,
                    "id": 3,
                    "iconImg": "https://i.imgur.com/gnBFt6F.png",
                    "title": "도마",
                    "soundFile": "http://www.kommaa.shop/sounds/cooking.mp3",
                    "defaultVolume": 0,
                    "play": true
                },
                {
                    "savesongId": 14,
                    "id": 5,
                    "iconImg": "https://i.imgur.com/WyPSnld.png",
                    "title": "보글보글",
                    "soundFile": "http://www.kommaa.shop/sounds/bubble.mp3",
                    "defaultVolume": 0,
                    "play": true
                }
            ]
        }
    ]
}

UserInfoUp

POST http://www.kommaa.shop/users/userinfoup

Client username, password 변경.

Headers

Request Body

{ "data": "홍길동" }

SongList

GET http://www.kommaa.shop/playlist/songlist

Client 사이트의 전체 음원 리스트

Path Parameters

{ "songlist": [
            {
              id: "1",
              title: "물",
              iconimg: "https://i.imgur.com/U89ed7j.jpg",
              soundFile: "http://kommaa.shop/sounds/water.mp3",
              defaultVolume: 0.4,
              play: false
            },
            {
              id: "2"
              title: "바람"
              iconimg: "https://i.imgur.com/U89ed7j.jpg",
              soundFile: "http://kommaa.shop/sounds/wind.mp3",
              defaultVolume: 0.4,
              play: false
            },
            {
              id: "3"
              title: ""
              iconimg: "https://i.imgur.com/U89ed7j.jpg",
              soundFile: "http://kommaa.shop/sounds/fire.mp3",
              defaultVolume: 0.4,
              play: false
            },
            ...
          ]
}

SavePlayList

POST http://www.kommaa.shop/playlist/saveplaylist

Client 유저 playlist 저장

Headers

Request Body

{ "message": "Save playlist Successfully }

DeletePlayList

POST http://www.kommaa.shop/playlist/deleteplaylist

Client 플레이 리스트 삭제 / id = playlist의 고유 id

Headers

Request Body

{ "message": "Delete playlist Successfully"}

UpdatePlayList

POST http://www.kommaa.shop/playlist/updateplaylist

Client 플레이 리스트 타이틀 변경 / id = playlist의 고유 id

Headers

Request Body

{ "message": "update successfully" }

Last updated