{"availableEndpoints":{"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 topics","queries":["topic","sort_by","order"],"exampleResponse":{"articles":[{"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":1594329060000,"votes":100,"comment_count":11}]}},"GET /api/articles/:article_id":{"description":"serves an object with the requested article","queries":[],"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":1594329060000,"votes":100,"comment_count":11}}},"PATCH /api/articles/:article_id":{"description":"updates an article increasing or decreasing the the votes","queries":[],"exampleInput":[{"inc-votes":2}],"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":1594329060000,"votes":102,"comment_count":11}}},"GET /api/articles/:article_id/comments":{"description":"serves an array with all the comments from the requested article","queries":[],"exampleResponse":{"comments":[{"comment_id":5,"body":"I hate streaming noses","votes":0,"author":"icellusedkars","article_id":1,"created_at":1604437200000}]}},"POST /api/articles/:article_id/comments":{"description":"posts an object with a comment related to the article that has been requested","queries":[],"exampleResponse":{"comment":{"comment_id":7,"body":"Lobster pot","votes":0,"author":"icellusedkars","article_id":1,"created_at":1589577540000}}},"DELETE /api/comments/:comment_id":{"description":"deletes the requested comment","queries":[],"exampleResponse":{}},"GET /api/users":{"description":"serves an array of all the users","queries":[],"exampleResponse":{"users":[{"username":"icellusedkars","name":"sam","avatar_url":"https://avatars2.githubusercontent.com/u/24604688?s=460&v=4"}]}}}}