forked from AudioBitsStellar/AudioBlock_Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
34 lines (34 loc) · 1011 Bytes
/
Copy pathopenapi.yaml
File metadata and controls
34 lines (34 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
openapi: 3.0.3
info:
title: AudioBlocks Backend API Reference
version: 1.0.0
description: API reference for AudioBlocks music NFT platform on Stellar/Soroban.
paths:
/api/api-keys:
post:
summary: Create an API key
description: Issues a new API key with explicit scopes (read-only, upload, admin).
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
scopes:
type: array
items:
type: string
enum: [read-only, upload, admin]
responses:
'201':
description: API key created successfully.
get:
summary: List API keys
description: Returns the list of API keys for the authenticated user.
/api/api-keys/{id}:
delete:
summary: Revoke an API key
description: Revokes an active API key.