###-------------------------------------------------------SYSTEM------------------------------------------------ ### GET http://{{host}}/metrics Content-Type: application/json ### GET http://{{host}}/health/liveness Content-Type: application/json ### GET http://{{host}}/health/readiness Content-Type: application/json ###---------------------------------------------------------JOB------------------------------------------------- GET http://{{host}}/job/status Content-Type: application/json ###-------------------------------------------------------ALBUMS------------------------------------------------ ### GET http://{{host}}/v1/tracks Content-Type: application/json ### GET http://{{host}}/v1/ tracks ?page=1 &page_size=10 Content-Type: application/json ### GET http://{{host}}/v1/ tracks ?page=1 &page_size=10 &sort_by=_id &sort_order=desc Content-Type: application/json ### ### Postgresql LIKE filters (use _, %, \% ) GET http://{{host}}/v1/ tracks ?page=1 &page_size=10 &sort_by=_id &sort_order=asc &filter=DJ RATEK ### GET http://{{host}}/v1/ tracks ?page=1 &page_size=10 &sort_by=_id &sort_order=asc &filter=VA Content-Type: application/json ### GET http://{{host}}/v1 /tracks /d23c2540-fba5-4e14-b636-20500ddec4db Content-Type: application/json ###--------------------------------------------------------USERS------------------------------------------------ POST http://{{host}}/v1/users/register Content-Type: application/json { "email":"a@a.com", "name":"a", "password":"1", "role":"member" } ### POST http://{{host}}/v1/users/login Content-Type: application/json { "email":"a@a.com", "password":"1" } ### POST http://{{host}}/v1/users/login Content-Type: application/json { "email":"admin@admin.com", "password":"admin" } ### POST http://{{host}}/v1/users/logout Content-Type: application/json ### GET http://{{host}}/v1/users/me Content-Type: application/json ### POST http://{{host}}/v1/users/delete Content-Type: application/json { "email":"a@a.com" } ### POST http://{{host}}/v1/users/refresh Content-Type: application/json { "refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYzMzA0NTksInN1YiI6ImFAYS5jb20ifQ.5wejb-XaOpUvMPDP-JZRQET-HBcpJ5hDQVNN5A3A7y4" } ###-------------------------------------------------------OTP------------------------------------------------ POST http://{{host}}/v1/users/otp/generate Content-Type: application/json { "user_id":"cac22f72-1fa2-4a81-876d-39fcf1cc9159" } ### POST http://{{host}}/v1/users/otp/verify Content-Type: application/json { "user_id":"cac22f72-1fa2-4a81-876d-39fcf1cc9159", "token": "946767" } ### POST http://{{host}}/v1/users/otp/validate Content-Type: application/json { "user_id":"cac22f72-1fa2-4a81-876d-39fcf1cc9159", "token": "946767" } ### POST http://{{host}}/v1/users/otp/disable Content-Type: application/json { "user_id":"cac22f72-1fa2-4a81-876d-39fcf1cc9159" } ###-------------------------------------------------------PLAY LIST-------------------------------------------- ### CreatePlaylist POST http://{{host}}/v1/playlist/create Content-Type: application/json { "title":"test Play list", "description":"test Play list" } ### ListAllPlaylist GET http://{{host}}/v1 /playlist /get ### AddToPlaylist POST http://{{host}}/v1 /playlist /6ec68de6-4114-49e9-9f85-50c1625e3af3 /bda7a5d0-2641-453b-a183-3adb71c4d573 Content-Type: application/json ### DeletePlaylist DELETE http://{{host}}/v1 /playlist /56f9da20-6213-4505-b089-bf4109185b30 Content-Type: application/json ### DeleteTrackFromPlaylist DELETE http://{{host}}/v1 /playlist /6ec68de6-4114-49e9-9f85-50c1625e3af3 /5ac0e5a1-5354-4921-ba32-2faf9c658edd Content-Type: application/json ### ClearPlaylist DELETE http://{{host}}/v1 /playlist /85df89a3-73e5-4184-bc62-ef82189f8b61 /clear Content-Type: application/json ### ListPlaylist GET http://{{host}}/v1 /playlist /6ec68de6-4114-49e9-9f85-50c1625e3af3 ### AddSingleTrackToPlaylist POST http://{{host}}/v1 /playlist /6ec68de6-4114-49e9-9f85-50c1625e3af3/tracks Content-Type: application/json { "item_ids": ["20b502af-8f95-4576-9951-51c81062b52a"] } ### AddMultipleTrackToPlaylist POST http://{{host}}/v1 /playlist /6ec68de6-4114-49e9-9f85-50c1625e3af3/tracks Content-Type: application/json { "item_ids": [ "023c9db1-5248-442d-b561-b63c950a5970", "4746eb63-00e9-41ba-90c7-ab17fb9986a3", "90b4326b-18eb-42a1-aaa7-4cf15a211aaf" ] } ### AddMultipleWithPositionToPlaylist POST http://{{host}}/v1 /playlist /6ec68de6-4114-49e9-9f85-50c1625e3af3/tracks Content-Type: application/json { "item_ids": [ "023c9db1-5248-442d-b561-b63c950a5970", "4746eb63-00e9-41ba-90c7-ab17fb9986a3", "90b4326b-18eb-42a1-aaa7-4cf15a211aaf" ], "position": 5 } ###-------------------------------------------------------PLAYER-------------------------------------------- ### Play playlist GET http://{{host}}/v1/audio/52ca215e-43b2-4982-94ee-34179ea19cfe Content-Type: application/json