Skip to content

Commit

Permalink
Add Cast Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyaschorge committed Oct 19, 2023
1 parent 7579990 commit 7ff9f14
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/v1/spec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
title: v1 Farcaster.
title: v1 Farcaster
version: "1.0"
servers:
- url: https://api.neynar.com/v1
Expand Down Expand Up @@ -63,6 +63,10 @@ components:
type: string
default: "0x5A927Ac639636E534b678e81768CA19e2C6280B7"
description: Ethereum address
CastHash:
type: string
default: "0xfe90f9de682273e05b201629ad2338bdcd89b6be"
description: Cast Hash
Timestamp:
type: string
format: date-time
Expand Down Expand Up @@ -333,7 +337,7 @@ components:
timestamp:
$ref: "#/components/schemas/Timestamp"
castHash:
$ref: "#/components/schemas/Address"
$ref: "#/components/schemas/CastHash"
Cast:
type: object
required:
Expand Down Expand Up @@ -802,6 +806,7 @@ paths:
description: Username of the user
schema:
type: string
example: 'shreyas-chorge'
- name: viewerFid
in: query
description: >-
Expand Down Expand Up @@ -935,9 +940,8 @@ paths:
in: query
required: true
description: Cast hash
example: "0xfe90f9de682273e05b201629ad2338bdcd89b6be"
schema:
$ref: "#/components/schemas/Address"
$ref: "#/components/schemas/CastHash"
- name: viewerFid
in: query
description: >-
Expand Down Expand Up @@ -967,9 +971,8 @@ paths:
in: query
required: true
description: The hash of the thread to retrieve casts from.
example: "0xfe90f9de682273e05b201629ad2338bdcd89b6be"
schema:
$ref: "#/components/schemas/Address"
$ref: "#/components/schemas/CastHash"
- name: viewerFid
in: query
description: >-
Expand Down Expand Up @@ -1227,9 +1230,8 @@ paths:
in: query
required: true
description: Cast hash
example: "0xfe90f9de682273e05b201629ad2338bdcd89b6be"
schema:
$ref: "#/components/schemas/Address"
$ref: "#/components/schemas/CastHash"
- name: viewerFid
in: query
description: >-
Expand Down Expand Up @@ -1274,9 +1276,8 @@ paths:
in: query
required: true
description: Cast hash
example: "0xfe90f9de682273e05b201629ad2338bdcd89b6be"
schema:
$ref: "#/components/schemas/Address"
$ref: "#/components/schemas/CastHash"
- name: viewerFid
in: query
description: >-
Expand Down Expand Up @@ -1321,9 +1322,8 @@ paths:
in: query
required: true
description: Cast hash
example: "0xfe90f9de682273e05b201629ad2338bdcd89b6be"
schema:
$ref: "#/components/schemas/Address"
$ref: "#/components/schemas/CastHash"
- name: viewerFid
in: query
description: >-
Expand Down
2 changes: 1 addition & 1 deletion src/v2/spec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
title: v2 Farcaster.
title: v2 Farcaster
version: "1.0"
servers:
- url: https://api.neynar.com/v2
Expand Down

0 comments on commit 7ff9f14

Please sign in to comment.