{"GET /api":{"description":"serves up a json representation of all the available endpoints of the api"},"GET /api/topics":{"description":"returns an array of topics","exampleResponse":{"topics":[{"slug":"football","description":"Footie!"}]}},"GET /api/articles":{"description":"returns an array of articles","queries":["topic","sort_by","order"],"exampleResponse":{"articles":[{"author":"jessjelly","title":"Running a Node App","article_id":1,"topic":"coding","created_at":"2020-11-07T06:03:00.000Z","votes":0,"comment_count":8}]}},"GET /api/articles/:article_id":{"description":"returns the given article","exampleResponse":{"article":{"article_id":1,"title":"Running a Node App","body":"This is part two of a series on how to get up and running with Systemd and Node.js. This part dives deeper into how to successfully run your app with systemd long-term, and how to set it up in a production environment.","votes":0,"topic":"coding","author":"jessjelly","created_at":"2020-11-07T06:03:00.000Z","comment_count":8}}},"PATCH /api/articles/:article_id":{"description":"updates vote count of the given article and returns it","exampleResponse":{"article":{"author":"butter_bridge","title":"Living in the shadow of a great man","article_id":1,"body":"I find this existence challenging","topic":"mitch","created_at":"2020-07-09T21:11:00.000Z","votes":110}}},"GET /api/articles/:article_id/comments":{"description":"returns an array of comments associated with the given article","exampleResponse":{"comments":[{"comment_id":2,"votes":14,"created_at":"2020-10-31T03:03:00.000Z","author":"butter_bridge","body":"The beautiful thing about treasure is that it exists. Got to find out what kind of sheets these are; not cotton, not rayon, silky."}]}},"POST /api/articles/:article_id/comments":{"description":"inserts a new comment and returns it","exampleResponse":{"comment":{"comment_id":19,"author":"lurker","article_id":1,"votes":0,"body":"test comment","created_at":"2021-12-03T11:30:52.006Z"}}},"DELETE /api/comments/:comment_id":{"description":"deletes the given comment"}}