Endpoint
This endpoint does NOT require authentication. It’s publicly accessible.
Description
Retrieves all articles from the database, ordered by ID in descending order (newest first). Each article includes its associated category, subcategory, and images. This endpoint is typically used for:- Displaying product catalogs in mobile/web applications
- Browsing available tech and anime articles
- Building article listing pages
Headers
Language preference for response messages. Supported values:
en, esResponse content type
Response
Indicates whether the request was successful
Human-readable message describing the result
Example Request
Example Response
Error Responses
This endpoint typically doesn’t return errors as it will return an empty array if no articles exist. However, server errors may occur:500 - Internal Server Error
Implementation Notes
- Articles are ordered by ID in descending order (newest first)
- All relationships (category, subcategory, images) are eager-loaded for performance
- No pagination is currently implemented - all articles are returned
- The endpoint uses the
ArticleResourcefor consistent response formatting
Source Code Reference:
ArticleController::index() at /home/daytona/workspace/source/app/Http/Controllers/ArticleController.php:55