Skip to content

Commit

Permalink
feat: support for channel APIs, POST cast now supports channel_id
Browse files Browse the repository at this point in the history
  • Loading branch information
manan19 committed Dec 18, 2023
1 parent 60e416a commit a9649b1
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/v2/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ components:
$ref: "#/components/schemas/EmbeddedCast"
parent:
$ref: "#/components/schemas/CastParent"
channel_id:
type: string
description: Channel ID of the channel where the cast is to be posted. e.g. neynar, farcaster, warpcast
ReactionReqBody:
type: object
required:
Expand Down Expand Up @@ -457,6 +460,33 @@ components:
properties:
cast:
$ref: "#/components/schemas/CastWithInteractions"
Channel:
type: object
required:
- id
- url
properties:
id:
type: string
url:
type: string
name:
type: string
description:
type: string
image_url:
type: string
lead_fid:
$ref: "#/components/schemas/Fid"
ChannelListResponse:
type: object
required:
- channels
properties:
channels:
type: array
items:
$ref: "#/components/schemas/Channel"
UserSearchResponse:
type: object
required:
Expand Down Expand Up @@ -845,6 +875,11 @@ tags:
externalDocs:
description: More info about notifications
url: https://docs.neynar.com/reference/notifications-operations
- name: Channel
description: Operations related to channels
externalDocs:
description: More info about channels
url: https://docs.neynar.com/reference/channel-operations
- name: Follows
description: Operations related to follows
externalDocs:
Expand Down Expand Up @@ -1595,6 +1630,24 @@ paths:
$ref: "#/components/schemas/NotificationsResponse"
"400":
$ref: "#/components/responses/400Response"
/farcaster/channel/list:
get:
tags:
- Channel
summary: Retrieve all channels with their details
description: Returns a list of all channels with their details
externalDocs:
url: https://docs.neynar.com/reference/list-all-channels
operationId: list-all-channels
parameters:
- $ref: "#/components/parameters/ApiKey"
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/ChannelListResponse"
/farcaster/followers/relevant:
get:
tags:
Expand Down

0 comments on commit a9649b1

Please sign in to comment.