Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 64 additions & 102 deletions api/swagger/swagger-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,7 @@ paths:
content:
application/json:
schema:
type: object
required:
- body
properties:
body:
type: string
$ref: '#/components/schemas/update_comment_request'
responses:
"200":
description: Comment updated successfully
Expand Down Expand Up @@ -3057,14 +3052,7 @@ paths:
content:
application/json:
schema:
type: object
properties:
city:
type: string
region:
type: string
country:
type: string
$ref: '#/components/schemas/track_download_request'
responses:
"200":
description: Track download recorded successfully
Expand Down Expand Up @@ -3757,46 +3745,6 @@ paths:
"500":
description: Server error
content: {}
put:
tags:
- users
description: Updates an existing user profile
operationId: Update User
security:
- BasicAuth: []
- BearerAuth: []
parameters:
- name: id
in: path
description: A User ID
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/update_user_request'
responses:
"200":
description: User updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/write_response'
"400":
description: Bad request
content: {}
"401":
description: Unauthorized
content: {}
"404":
description: User not found
content: {}
"500":
description: Server error
content: {}
/users/{id}/authorized_apps:
get:
tags:
Expand Down Expand Up @@ -3850,12 +3798,7 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/developer_app'
$ref: '#/components/schemas/developer_apps_response'
"400":
description: Bad request
content: {}
Expand Down Expand Up @@ -3890,14 +3833,7 @@ paths:
content:
application/json:
schema:
type: object
properties:
api_key:
type: string
api_secret:
type: string
transaction_hash:
type: string
$ref: '#/components/schemas/create_user_developer_app_response'
"400":
description: Bad request
content: {}
Expand Down Expand Up @@ -3936,12 +3872,7 @@ paths:
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
transaction_hash:
type: string
$ref: '#/components/schemas/write_response'
"401":
description: Unauthorized
content: {}
Expand Down Expand Up @@ -3986,10 +3917,7 @@ paths:
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
$ref: '#/components/schemas/deactivate_access_key_response'
"400":
description: Bad request (api_access_key required)
content: {}
Expand Down Expand Up @@ -6987,17 +6915,23 @@ components:
type: string
playlist_added_timestamp:
required:
- metadata_timestamp
- timestamp
- track_id
- timestamp
type: object
properties:
metadata_timestamp:
type: integer
timestamp:
type: integer
track_id:
type: string
description: Track ID
timestamp:
type: integer
format: int64
description: Unix timestamp when track was added
minimum: 0
metadata_timestamp:
type: integer
format: int64
description: Metadata timestamp
minimum: 0
access:
required:
- download
Expand Down Expand Up @@ -9769,24 +9703,7 @@ components:
type: array
description: Array of tracks in the playlist
items:
type: object
required:
- track_id
- timestamp
properties:
track_id:
type: string
description: Track ID
timestamp:
type: integer
format: int64
description: Unix timestamp when track was added
minimum: 0
metadata_timestamp:
type: integer
format: int64
description: Metadata timestamp
minimum: 0
$ref: '#/components/schemas/playlist_added_timestamp'
ddex_app:
type: string
description: DDEX application identifier
Expand Down Expand Up @@ -9958,6 +9875,14 @@ components:
coin_flair_mint:
type: string
description: Coin flair mint address
update_comment_request:
type: object
required:
- body
properties:
body:
type: string
description: The updated comment text
create_comment_request:
type: object
required:
Expand Down Expand Up @@ -10054,6 +9979,43 @@ components:
api_access_key:
type: string
description: The newly created bearer token (API access key)
track_download_request:
type: object
properties:
city:
type: string
description: City where the download occurred
region:
type: string
description: Region where the download occurred
country:
type: string
description: Country where the download occurred
developer_apps_response:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/developer_app'
create_user_developer_app_response:
type: object
properties:
api_key:
type: string
description: The API key (address) for the developer app
api_secret:
type: string
description: The API secret (access key) for the developer app
transaction_hash:
type: string
description: Transaction hash of the creation
deactivate_access_key_response:
type: object
properties:
success:
type: boolean
description: Whether the deactivation was successful
responses:
ParseError:
description: When a mask can't be parsed
Expand Down