{"endpoints":{"GET /api":{"description":"Serves up a JSON representation of all the available endpoints of the API"},"GET /api/topics":{"description":"Serves an array of all topics","queries":[],"exampleResponse":{"topics":[{"slug":"football","description":"Footie!"}]}},"GET /api/articles":{"description":"Serves an array of all articles with optional sorting and filtering","queries":["sort_by","order","topic"],"exampleResponse":{"articles":[{"article_id":1,"title":"Seafood substitutions are increasing","topic":"cooking","author":"weegembump","created_at":"2018-05-30T15:59:13.341Z","votes":0,"comment_count":"6","article_img_url":"https://image.url"}]}},"GET /api/articles/:article_id":{"description":"Serves an individual article by article_id, including comment count","queries":[],"exampleResponse":{"article":{"article_id":1,"title":"Seafood substitutions are increasing","topic":"cooking","author":"weegembump","body":"Text of the article","created_at":"2018-05-30T15:59:13.341Z","votes":0,"comment_count":"6","article_img_url":"https://image.url"}}},"PATCH /api/articles/:article_id":{"description":"Updates the vote count for a given article by article_id","queries":[],"exampleRequestBody":{"inc_votes":1},"exampleResponse":{"article":{"article_id":1,"votes":101}}},"GET /api/articles/:article_id/comments":{"description":"Serves an array of comments for the given article_id, sorted by date descending","queries":[],"exampleResponse":{"comments":[{"comment_id":1,"votes":16,"created_at":"2018-05-30T15:59:13.341Z","author":"butter_bridge","body":"Great article!","article_id":1}]}},"POST /api/articles/:article_id/comments":{"description":"Adds a comment to the given article_id","exampleRequestBody":{"username":"butter_bridge","body":"Loved this article!"},"exampleResponse":{"comment":{"comment_id":19,"author":"butter_bridge","article_id":1,"body":"Loved this article!","votes":0,"created_at":"2025-05-14T00:00:00.000Z"}}},"DELETE /api/comments/:comment_id":{"description":"Deletes the comment by comment_id","queries":[],"exampleResponse":{}}}}