-
Notifications
You must be signed in to change notification settings - Fork 1
Add coin-gated text posts #742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3805f1e
03d6f12
e3bd7d1
9bda99b
4b9521c
13f5d42
21ebba2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -507,6 +507,9 @@ func NewApiServer(config config.Config) *ApiServer { | |
| g.Post("/tracks/:trackId/downloads", app.requireAuthMiddleware, app.requireWriteScope, app.postV1TrackDownload) | ||
| g.Put("/tracks/:trackId", app.requireAuthMiddleware, app.requireWriteScope, app.putV1Track) | ||
| g.Delete("/tracks/:trackId", app.requireAuthMiddleware, app.requireWriteScope, app.deleteV1Track) | ||
| g.Get("/fan_club/feed", app.v1FanClubFeed) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you also add fan-club? i think we are generally moving in the direction of |
||
| g.Get("/fan-club/feed", app.v1FanClubFeed) | ||
|
|
||
| g.Get("/tracks/:trackId/comments", app.v1TrackComments) | ||
| g.Get("/tracks/:trackId/comment_count", app.v1TrackCommentCount) | ||
| g.Get("/tracks/:trackId/comment-count", app.v1TrackCommentCount) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -611,6 +611,100 @@ paths: | |
| "500": | ||
| description: Server error | ||
| content: {} | ||
| /fan_club/feed: | ||
| get: | ||
| tags: | ||
| - fan_club | ||
| description: Get the fan club feed for a given artist, including text posts and comments | ||
| operationId: Get Fan Club Feed | ||
| security: | ||
| - {} | ||
| - OAuth2: | ||
| - read | ||
| parameters: | ||
| - name: mint | ||
| in: query | ||
| description: The mint address of the artist's fan club token | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: user_id | ||
| in: query | ||
| description: The user ID of the user making the request | ||
| schema: | ||
| type: string | ||
| - name: offset | ||
| in: query | ||
| description: | ||
| The number of items to skip. Useful for pagination (page number | ||
| * limit) | ||
| schema: | ||
| type: integer | ||
| - name: limit | ||
| in: query | ||
| description: The number of items to fetch | ||
| schema: | ||
| type: integer | ||
| responses: | ||
| "200": | ||
| description: Success | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/track_comments_response" | ||
| "400": | ||
| description: Bad request | ||
| content: {} | ||
| "500": | ||
| description: Server error | ||
| content: {} | ||
| /fan-club/feed: | ||
| get: | ||
| tags: | ||
| - fan_club | ||
| description: Get the fan club feed for a given artist (hyphenated alias), including text posts and comments | ||
| operationId: Get Fan Club Feed Alias | ||
| security: | ||
| - {} | ||
| - OAuth2: | ||
| - read | ||
| parameters: | ||
| - name: mint | ||
| in: query | ||
| description: The mint address of the artist's fan club token | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: user_id | ||
| in: query | ||
| description: The user ID of the user making the request | ||
| schema: | ||
| type: string | ||
| - name: offset | ||
| in: query | ||
| description: | ||
| The number of items to skip. Useful for pagination (page number | ||
| * limit) | ||
| schema: | ||
| type: integer | ||
| - name: limit | ||
| in: query | ||
| description: The number of items to fetch | ||
| schema: | ||
| type: integer | ||
| responses: | ||
| "200": | ||
| description: Success | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/track_comments_response" | ||
| "400": | ||
| description: Bad request | ||
| content: {} | ||
| "500": | ||
| description: Server error | ||
| content: {} | ||
| /developer-apps: | ||
| post: | ||
| tags: | ||
|
|
@@ -14682,6 +14776,7 @@ components: | |
| description: Type of entity that can be commented on | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also probably want the new endpoint changes in swagger too |
||
| enum: | ||
| - Track | ||
| - Coin | ||
| top_listener: | ||
| type: object | ||
| properties: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice