Skip to content

Implementing Backend API for Article Listing for authors #1017

@prankurpandeyy

Description

@prankurpandeyy

Is your feature request related to a problem? Please describe.

Our community is growing and people love our content as we are the most trusted, reputed platform for learning to code without paying a single penny, The same goes for our content writers who are developers but choose us to publish the articles.
I want to implement a simple API function in the backend for our authors who wish to embed their articles on their sites or anywhere.
The URL will be something like this: https://freecodecamp.com/api/articles?username={username}
The username will be the same as the contributors set on their FreecodeCamp Profile.
When anyone hits this URL it should return an array of objects containing following data :
[ { "type_of": "article", "id": "article_id", "title": "article title", "description": "description", "readable_publish_date": "published date", "url": "url", "published_timestamp": "published_timestamp", "cover_image": "cover_image", "canonical_url": "canonical_url", "created_at": "created_at", "published_at": "published_at" } ]

Describe the solution you'd like

I wish to implement this task

Describe alternatives you've considered

I tried searching many things but didn't get the desired result

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions