{"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","queries":["author","topic","sort_by","order"],"exampleResponse":{"articles":[{"title":"Seafood substitutions are increasing","topic":"cooking","author":"weegembump","body":"Text from the article..","created_at":"2018-05-30T15:59:13.341Z","votes":0,"comment_count":6}]}},"GET /api/articles/:article_id":{"description":"responds with an article object","exampleResponse":{"article":{"article_id":1,"title":"Living in the shadow of a great man","topic":"mitch","author":"butter_bridge","body":"I find this existence challenging","created_at":"2020-07-09T20:11:00.000Z","votes":100,"article_img_url":"https://images.pexels.com/photos/158651/news-newsletter-newspaper-information-158651.jpeg?w=700&h=700","comment_count":11}}},"GET /api/articles/:article_id/comments":{"description":"responds with all comments for a given article","exampleResponse":{"articleComments":[{"comment_id":5,"body":"I find this existence challenging","article_id":1,"author":"butter_bridge","votes":100,"created_at":"2020-07-09T20:11:00.000Z","title":"Living in the shadow of a great man","topic":"mitch","article_img_url":"https://images.pexels.com/photos/158651/news-newsletter-newspaper-information-158651.jpeg?w=700&h=700"}]}},"POST /api/articles/:article_id/comments":{"description":"add a comment to an article by article_id","exampleResponse":{"commentAdded":{"comment_id":19,"body":"The human brain is an incredible pattern-matching machine.","article_id":1,"author":"lurker","votes":0,"created_at":"2023-06-28T11:06:30.686Z"}}},"PATCH /api/articles/:article_id":{"description":"increments or decrements an article's votes by value given","exampleResponse":{"updatedArticleVotes":{"article_id":1,"title":"Living in the shadow of a great man","topic":"mitch","author":"butter_bridge","body":"I find this existence challenging","created_at":"2020-07-09T20:11:00.000Z","votes":101,"article_img_url":"https://images.pexels.com/photos/158651/news-newsletter-newspaper-information-158651.jpeg?w=700&h=700"}}},"DELETE /api/comments/:comment_id":{"description":"deletes a comment by comment_id"},"GET /api/users":{"description":"get all users","exampleResponse":{"users":[{"username":"rogersop","name":"paul","avatar_url":"https://avatars2.githubusercontent.com/u/24394918?s=400&v=4"},{"username":"lurker","name":"do_nothing","avatar_url":"https://www.golenbock.com/wp-content/uploads/2015/01/placeholder-user.png"}]}}}