Update music-track-service markdown

This commit is contained in:
2026-02-03 12:22:07 +03:00
parent fb1d0b6537
commit 1882c1208a

View File

@@ -8,13 +8,11 @@
Создаёт новый трек. Создаёт новый трек.
```http ```http title="Request"
PUT /api/tracks HTTP/1.1 PUT /api/tracks HTTP/1.1
Accept: application/json Accept: application/json
``` ```
#### Пример тела запроса
```json title="Request Body Example" ```json title="Request Body Example"
{ {
"title": "My Track Title", "title": "My Track Title",
@@ -23,8 +21,6 @@ Accept: application/json
} }
``` ```
#### Пример ответа
```json title="Response Body Example" ```json title="Response Body Example"
{ {
"id": 1, "id": 1,
@@ -41,12 +37,10 @@ Accept: application/json
Возвращает трек по идентификатору. Возвращает трек по идентификатору.
```http ```http title="Request"
GET /api/tracks/{id} HTTP/1.1 GET /api/tracks/{id} HTTP/1.1
``` ```
#### Пример ответа
```json title="Response Body Example" ```json title="Response Body Example"
{ {
"id": 1, "id": 1,
@@ -63,13 +57,11 @@ GET /api/tracks/{id} HTTP/1.1
Увеличивает число прослушиваний трека на 1. Увеличивает число прослушиваний трека на 1.
```http ```http title="Request"
POST /api/tracks/auditions/{id} HTTP/1.1 POST /api/tracks/auditions/{id} HTTP/1.1
``` ```
#### Пример ответа ```json title="Response Body Example"
```json
{ {
"auditions": 1 "auditions": 1
} }
@@ -81,13 +73,11 @@ POST /api/tracks/auditions/{id} HTTP/1.1
Возвращает список из десяти наиболее прослушиваемых треков. Возвращает список из десяти наиболее прослушиваемых треков.
```http ```http title="Request"
GET /api/tracks/top HTTP/1.1 GET /api/tracks/top HTTP/1.1
``` ```
#### Пример ответа ```json title="Response Body Example"
```json
[ [
{ {
"id": 1, "id": 1,