Commit 8a1e1b5f authored by blackheaven's avatar blackheaven
Browse files

Update docs/index.md, docs/api/api.yaml

parent fa089a4c
Loading
Loading
Loading
Loading
Loading
+16 −19
Original line number Diff line number Diff line
openapi: 3.1.0
info:
  version: 0.1
  title: AudioLM REST API
  title: Random BGM REST API
servers:
  - url: http://api.example.com/
  - url: https://random-bgm.fly.dev/
paths:
  /:
    get:
@@ -21,27 +21,24 @@ paths:
      responses:
        200:
          description: OK
  /text2audio:
  /bgm/happy:
    get:
     summary: test
     summary: 10s mp3
     tags:
      - audio
     responses:
       200:
         description: return something message
         description: return trimmed 10s mp3
         content:
           aduio/mp3: {}
    # https://stackoverflow.com/a/73418375
    post:
      summary: input text, output audio
  /bgm/sad:
    get:
     summary: 10s mp3
     tags:
      - audio
      parameters:
        - name: text
          required: true
          schema:
            type: string
     responses:
        '200':
          description: Receive wav file after audio file generated (It takes avg 5m)
       200:
         description: return trimmed 10s mp3
         content:
            audio/wav: {}
           aduio/mp3: {}
+1 −1
Original line number Diff line number Diff line
Descrive AudioLM REST API
Descrive Random BGM REST API

## Swagger UI