forked from alaress/schoolbox-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 1.01 KB
/
news@[email protected]
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
get:
operationId: commsNews.getAuthoredArticles
tags: [news]
summary: Get articles written by the authenticated user
description: |
Get the list of articles written by the currently authenticated user.
responses:
'200':
description: |
A list of articles which the authenticated user has written.
content:
application/json:
schema:
type: array
items:
allOf:
- $ref: ../components/schemas/news/commonFields.yaml
- type: object
properties:
author:
$ref: ../components/schemas/news/authorNameOnly.yaml
sticky:
$ref: ../components/schemas/news/sticky.yaml
readMore:
$ref: ../components/schemas/news/readMore.yaml
_links:
$ref: ../components/schemas/news/links.yaml
default:
$ref: ../components/responses/problem.yaml