forked from dricazenck/wcc-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi_home.yml
More file actions
213 lines (196 loc) · 6.13 KB
/
api_home.yml
File metadata and controls
213 lines (196 loc) · 6.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
openapi: 3.0.0
info:
title: Home Page API
description: API to retrieve information for the homepage
version: 1.0.0
servers:
- url: http://localhost:8080/api/cms/v1
- url: https://wcc-cms.fly.dev/api/cms/v1
paths:
/homePage:
get:
summary: Get Home Page content
security:
- apiKey: [ ]
responses:
'200':
description: List the content of Home's Page
content:
application/json:
schema:
$ref: '#/components/schemas/HomePage'
'401':
$ref: 'schemas/responses.yml#/components/responses/Unauthorized'
'403':
$ref: 'schemas/responses.yml#/components/responses/Forbidden'
'404':
$ref: 'schemas/responses.yml#/components/responses/NotFound'
'406':
$ref: 'schemas/responses.yml#/components/responses/NotAcceptable'
'429':
$ref: 'schemas/responses.yml#/components/responses/TooManyRequests'
'5XX':
$ref: 'schemas/responses.yml#/components/responses/UnexpectedError'
default:
$ref: 'schemas/responses.yml#/components/responses/Forbidden'
components:
securitySchemes:
apiKey:
type: apiKey
in: header
name: X-API-Key
schemas:
HomePage:
type: object
properties:
heroSection:
$ref: '#/components/schemas/HeroSection'
fullBannerSection:
$ref: '#/components/schemas/FullBannerSection'
programmesSection:
$ref: '#/components/schemas/ProgrammesSection'
announcementSection:
$ref: '#/components/schemas/AnnouncementSection'
eventsSection:
$ref: '#/components/schemas/EventsSection'
volunteerSection:
$ref: '#/components/schemas/VolunteerSection'
HeroSection:
type: object
properties:
title:
type: string
example: Women Coding Community
description:
type: string
example: Empowering Women in Their Tech Careers
images:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Images'
FullBannerSection:
type: object
properties:
title:
type: string
example: Become a Mentor
description:
type: string
example: |
Ready to empower and be empowered in tech? Become a mentor! Expand your network, give back, share expertise, and discover new perspectives.
images:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Images'
link:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Link'
ProgrammesSection:
type: object
properties:
title:
type: string
example: Opportunities and Programmes
description:
type: string
example: >
Join our community and unlock endless opportunities. Network, find mentors, and access leadership programs. Whether you're aiming to enhance your skills, grow your professional network, or advance your career, we have what you need. We offer a wide range of opportunities to help you achieve your goals.
programmes:
type: array
items:
$ref: '#/components/schemas/Programme'
Programme:
type: object
properties:
name:
type: string
example: Mentorship
link:
type: string
example: /mentorship
icon:
type: string
example: Diversity2
AnnouncementSection:
type: object
properties:
title:
type: string
example: Announcements
events:
type: array
maxItems: 4
items:
$ref: '#/components/schemas/Announcement'
Announcement:
type: object
properties:
title:
type: string
example: Mentorship ad-hoc registration is open now
date:
type: string
example: Registration from MAY 6 - MAY 17, 2024
endDate:
type: integer
example: 20240517
description:
type: string
example: Sign up for this unique opportunity of one-time mentoring sessions with personalised guidance from experienced mentors.
link:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Link'
images:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Images'
EventsSection:
type: object
properties:
title:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Title'
link:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Link'
events:
type: array
maxItems: 4
items:
$ref: '#/components/schemas/Event'
Event:
type: object
properties:
type:
type: string
example: Book Club
date:
type: string
example: THU, MAY 30, 2024, 8:00 PM to 9:30 PM CEST
endDate:
type: integer
example: 20240517
title:
type: string
example: |
Book Club: The Pragmatic Programmer
host:
type: string
example: Sasha Northon and Lana Rey
speaker:
type: string
example: John Smith
description:
type: string
example: >
Join us for a discussion of this essential guide to writing clear and maintainable code!
images:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Images'
link:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Link'
VolunteerSection:
type: object
properties:
title:
type: string
example: Volunteer With Us
description:
type: string
example: >
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
link:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Link'
images:
$ref: 'schemas/attributes.yml#/components/schemas/attributes/Images'
security:
- apiKey: [ ]