-
Notifications
You must be signed in to change notification settings - Fork 0
API description
μ μ’
λ¬Έ edited this page Jun 14, 2024
·
2 revisions
This document provides detailed information about the API endpoints available for interacting with the Sing-To-Me backend services. These APIs allow users to manage and interact with voice and AI cover song functionalities.

- π€ Voice API: Manages all requests related to the Voice List (Create, Read, Update, Delete).
- πΆ AI Cover Song API: Manages all requests related to the AI Cover Song List (Create, Read, Update, Delete) and checks the status of the RVC model.
domain/
βββ config/
βββ controller/
β βββ UserController.java
β βββ UvrStatusController.java
β βββ ...
βββ entity/
β βββ User.java
β βββ UvrStatus.java
β βββ ...
βββ repository/
β βββ UserRepository.java
β βββ VoiceRepository.java
β βββ ...
βββ jwt/
βββ service/
The project's folder structure is organized according to the MVC pattern of Spring Boot, with each domain having its own Models, Controllers, and Services.
This section details the API endpoints available for interacting with the Sing-To-Me backend services. The APIs allow users to manage and interact with voice and AI cover song functionalities.
| Endpoint | Method | Description |
|---|---|---|
/convertedsong/list |
GET |
Retrieves a list of all converted songs. |
/convertedsong/list/{user_id} |
GET |
Retrieves a list of songs converted by a specific user. |
/convertedsong/likes/{user_id}/{converted_id} |
POST |
Adds or removes a like from a converted song by the specified user. |
/convertedsong/playCount |
GET |
Retrieves a paginated list of songs sorted by play count. |
/convertedsong/top10 |
GET |
Retrieves a list of the top 10 converted songs by play count. |
/convertedsong/{converted_id} |
POST |
Increments the play count each time a converted song is played. |
| Endpoint | Method | Description |
|---|---|---|
/voice/list/{user_id} |
GET |
Retrieves a list of voices created by a specific user. |
/voice/likes/{user_id}/{voice_id} |
POST |
Adds or removes a like from a voice by the specified user. |
| Endpoint | Method | Description |
|---|---|---|
/login |
POST |
Authenticates a user with their email and password. |
Author: HeeChang Chung
Last modified: June 14. 2024