File tree Expand file tree Collapse file tree 1 file changed +91
-0
lines changed
Expand file tree Collapse file tree 1 file changed +91
-0
lines changed Original file line number Diff line number Diff line change 1+ openapi : 3.0.0
2+ info :
3+ version : ' 1.0.0'
4+ title : Hoot
5+ license :
6+ name : ISC
7+ paths : {}
8+ tags :
9+ - name : Hoots
10+ description : This endpoint is for individual Hoots.
11+ - name : Timeline
12+ description : This endpoint is for Hoot timelines.
13+ servers :
14+ - url : https://hoot.at/api
15+ components :
16+ parameters :
17+ id :
18+ name : id
19+ in : path
20+ schema :
21+ type : string
22+ description : The id of the hoot you want
23+ required : true
24+ example : 5c3e39af342143680d31775c
25+ securitySchemes :
26+ basicAuth :
27+ type : http
28+ scheme : basic
29+ schemas :
30+ HootPost :
31+ type : object
32+ required :
33+ - post
34+ properties :
35+ post :
36+ type : string
37+ description : The under-280-character content you want to hoot
38+ example : just setting up my hoot
39+ maxLength : 280
40+ ReplyToString :
41+ type : object
42+ properties :
43+ replyto :
44+ type : string
45+ description : Optional id of the hoot being replied to
46+ example : 5c3e39af342143680d31775c
47+ NewHoot :
48+ type : object
49+ allOf :
50+ - $ref : ' #/components/schemas/HootPost'
51+ - $ref : ' #/components/schemas/ReplyToString'
52+ AdditionalHootProperties :
53+ type : object
54+ properties :
55+ _id :
56+ type : string
57+ description : The unique, auto-generated ID for the hoot
58+ example : 5c3e39af342143680d31775c
59+ createdAt :
60+ type : string
61+ format : date-time
62+ likes :
63+ type : array
64+ description : An array containing usernames of the users that liked this hoot
65+ items :
66+ type : string
67+ example : owlet
68+ username :
69+ type : string
70+ example : owlbert
71+ description : The username for the user that created this hoot
72+ SmolHoot :
73+ type : object
74+ allOf :
75+ - $ref : ' #/components/schemas/AdditionalHootProperties'
76+ - $ref : ' #/components/schemas/HootPost'
77+ - $ref : ' #/components/schemas/ReplyToString'
78+ ReplyToObject :
79+ type : object
80+ required :
81+ - post
82+ properties :
83+ replyto :
84+ type : object
85+ $ref : ' #/components/schemas/SmolHoot'
86+ BigHoot :
87+ type : object
88+ allOf :
89+ - $ref : ' #/components/schemas/AdditionalHootProperties'
90+ - $ref : ' #/components/schemas/HootPost'
91+ - $ref : ' #/components/schemas/ReplyToObject'
You can’t perform that action at this time.
0 commit comments