GET Endpoints:
-
Articles:
-
GET /api/articles
: Retrieve a list of articles. -
GET /api/articles/:id
: Retrieve a specific article by its ID. -
GET /api/articles/:slug
: Retrieve a specific article by its URL slug. https://dev.to/api/articles?per_page=12&page=${page}
-
https://dev.to/api/articles/latest?per_page=12&page=4
https://dev.to/stories/feed/latest?page=1
-
-
Comments:
-
GET /api/comments
: Retrieve a list of comments. -
GET /api/comments/:id
: Retrieve a specific comment by its ID.
-
-
Users:
-
GET /api/articles/?username={username}
: Retrieve a list of users. -
GET /api/users/:username
: Retrieve a specific user by their username.
-
-
Tags:
-
GET /api/tags
: Retrieve a list of tags. -
GET /api/tags/:tag_name
: Retrieve articles associated with a specific tag.
-
-
Search
https://dev.to/api/articles/search?q=sh20raj
https://dev.to/search/feed_content?per_page=15&page=0&sort_by=published_at&sort_direction=desc&approved=&class_name=Article
https://dev.to/search/feed_content?per_page=60&page=0&class_name=Article&search_fields=dev.to+apis
POST Endpoints:
-
Articles:
-
POST /api/articles
: Create a new article.
-
-
Comments:
-
POST /api/comments
: Create a new comment.
-
-
Users:
-
POST /api/users
: Create a new user.
-
-
Authentication:
-
POST /api/auth/token
: Obtain an authentication token.
-
-
Followers:
-
POST /api/follows
: Follow a user.
-
-
Reactions:
-
POST /api/articles/:id/reactions
: React to an article. -
POST /api/comments/:id/reactions
: React to a comment.
-
Other Methods:
- PUT Endpoints:
-
PUT /api/articles/:id
: Update an existing article. -
PUT /api/comments/:id
: Update an existing comment. -
PUT /api/users/:username
: Update an existing user.
- DELETE Endpoints:
-
DELETE /api/articles/:id
: Delete an article. -
DELETE /api/comments/:id
: Delete a comment. -
DELETE /api/users/:username
: Delete a user. -
DELETE /api/auth/token
: Revoke an authentication token. -
DELETE /api/follows/:id
: Unfollow a user.
These sections categorize the endpoints based on their HTTP methods, making it easier to understand which endpoints are used for retrieving data (GET), creating new resources (POST), updating existing resources (PUT), and deleting resources (DELETE).