We are going to add REST API interface to our forum, and we decided to begin with creating endpoints without authentication. It won't be secure but it will make development process easier. We will add authentication to these endpoints in the future.
We need to add an endpoint which will return the info about particular post. It will be author_id, created_at, body, and topic_id.
So in the scope of this task we need to create an endpoint which will return post info in json format, or 404 if post was not found.
We are going to add REST API interface to our forum, and we decided to begin with creating endpoints without authentication. It won't be secure but it will make development process easier. We will add authentication to these endpoints in the future.
We need to add an endpoint which will return the info about particular post. It will be
author_id
,created_at
,body
, andtopic_id
.So in the scope of this task we need to create an endpoint which will return post info in json format, or 404 if post was not found.