Upload swagger.yaml
Browse files- swagger.yaml +116 -0
swagger.yaml
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openapi: 3.0.0
|
| 2 |
+
info:
|
| 3 |
+
title: MP3 Metadata Editor API
|
| 4 |
+
description: API untuk mengedit metadata MP3 dan menambahkan file cover
|
| 5 |
+
version: 1.0.0
|
| 6 |
+
servers:
|
| 7 |
+
- url: https://nexchan-yutub.hf.space
|
| 8 |
+
paths:
|
| 9 |
+
/edit-metadata-ffmpeg:
|
| 10 |
+
post:
|
| 11 |
+
summary: Mengedit metadata MP3 menggunakan ffmpeg
|
| 12 |
+
requestBody:
|
| 13 |
+
content:
|
| 14 |
+
multipart/form-data:
|
| 15 |
+
schema:
|
| 16 |
+
type: object
|
| 17 |
+
properties:
|
| 18 |
+
mp3File:
|
| 19 |
+
type: string
|
| 20 |
+
format: binary
|
| 21 |
+
description: File MP3 yang akan diedit metadata
|
| 22 |
+
coverFile:
|
| 23 |
+
type: string
|
| 24 |
+
format: binary
|
| 25 |
+
description: File cover untuk MP3
|
| 26 |
+
artist:
|
| 27 |
+
type: string
|
| 28 |
+
description: Artis lagu
|
| 29 |
+
title:
|
| 30 |
+
type: string
|
| 31 |
+
description: Judul lagu
|
| 32 |
+
responses:
|
| 33 |
+
'200':
|
| 34 |
+
description: Metadata MP3 berhasil diedit
|
| 35 |
+
content:
|
| 36 |
+
audio/mpeg:
|
| 37 |
+
schema:
|
| 38 |
+
type: string
|
| 39 |
+
format: binary
|
| 40 |
+
description: File MP3 hasil edit metadata
|
| 41 |
+
'400':
|
| 42 |
+
description: Bad request - data tidak lengkap
|
| 43 |
+
'500':
|
| 44 |
+
description: Gagal mengedit metadata menggunakan ffmpeg
|
| 45 |
+
/edit-metadata:
|
| 46 |
+
post:
|
| 47 |
+
summary: Mengedit metadata MP3 menggunakan node-id3
|
| 48 |
+
requestBody:
|
| 49 |
+
content:
|
| 50 |
+
multipart/form-data:
|
| 51 |
+
schema:
|
| 52 |
+
type: object
|
| 53 |
+
properties:
|
| 54 |
+
mp3File:
|
| 55 |
+
type: string
|
| 56 |
+
format: binary
|
| 57 |
+
description: File MP3 yang akan diedit metadata
|
| 58 |
+
coverFile:
|
| 59 |
+
type: string
|
| 60 |
+
format: binary
|
| 61 |
+
description: File cover untuk MP3
|
| 62 |
+
artist:
|
| 63 |
+
type: string
|
| 64 |
+
description: Artis lagu
|
| 65 |
+
title:
|
| 66 |
+
type: string
|
| 67 |
+
description: Judul lagu
|
| 68 |
+
responses:
|
| 69 |
+
'200':
|
| 70 |
+
description: Metadata MP3 berhasil diedit
|
| 71 |
+
content:
|
| 72 |
+
audio/mpeg:
|
| 73 |
+
schema:
|
| 74 |
+
type: string
|
| 75 |
+
format: binary
|
| 76 |
+
description: File MP3 hasil edit metadata
|
| 77 |
+
'400':
|
| 78 |
+
description: Bad request - data tidak lengkap
|
| 79 |
+
'500':
|
| 80 |
+
description: Gagal mengedit metadata menggunakan node-id3
|
| 81 |
+
/edit-metadata-2:
|
| 82 |
+
post:
|
| 83 |
+
summary: Mengedit metadata MP3 menggunakan browser-id3-writer
|
| 84 |
+
requestBody:
|
| 85 |
+
content:
|
| 86 |
+
multipart/form-data:
|
| 87 |
+
schema:
|
| 88 |
+
type: object
|
| 89 |
+
properties:
|
| 90 |
+
mp3File:
|
| 91 |
+
type: string
|
| 92 |
+
format: binary
|
| 93 |
+
description: File MP3 yang akan diedit metadata
|
| 94 |
+
coverFile:
|
| 95 |
+
type: string
|
| 96 |
+
format: binary
|
| 97 |
+
description: File cover untuk MP3
|
| 98 |
+
artist:
|
| 99 |
+
type: string
|
| 100 |
+
description: Artis lagu
|
| 101 |
+
title:
|
| 102 |
+
type: string
|
| 103 |
+
description: Judul lagu
|
| 104 |
+
responses:
|
| 105 |
+
'200':
|
| 106 |
+
description: Metadata MP3 berhasil diedit
|
| 107 |
+
content:
|
| 108 |
+
audio/mpeg:
|
| 109 |
+
schema:
|
| 110 |
+
type: string
|
| 111 |
+
format: binary
|
| 112 |
+
description: File MP3 hasil edit metadata
|
| 113 |
+
'400':
|
| 114 |
+
description: Bad request - data tidak lengkap
|
| 115 |
+
'500':
|
| 116 |
+
description: Gagal mengedit metadata menggunakan browser-id3-writer
|