You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.
The ability to get all articles from the database via the API.
API Endpoint
GET /article
Query Parameter
Description
?userId=
The ID of the author of all the articles you want to retrieve
?status=
The status of the articles you want to retrieve
Users are not required to be authenticated to access this endpoint. However, they may only retrieve articles where status is APPROVED unless they are the author of the article which is being requested.
Response Body
[{id: number;
created: string;// simplified extended ISO formatted date
modified: string;// simplified extended ISO formatted date
title: string;
description: string;
content: string;
status: ArticleStatus;// APPROVED, PENDING, REJECTED
user: {
id: number;
username: string;
created: string;// simplified extended ISO formatted date
modified: string;// simplified extended ISO formatted date }},
...
]
Why Will This Benefit The Community?
This functionality will allow us to display articles on the web and in Discord.
The text was updated successfully, but these errors were encountered:
Requires #27
What Functionality Are You Suggesting?
The ability to get all articles from the database via the API.
API Endpoint
GET /article
?userId=
?status=
Users are not required to be authenticated to access this endpoint. However, they may only retrieve articles where
status
isAPPROVED
unless they are the author of the article which is being requested.Response Body
Why Will This Benefit The Community?
This functionality will allow us to display articles on the web and in Discord.
The text was updated successfully, but these errors were encountered: