Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create "Get Topic By ID" endpoint #31

Open
haxwell opened this issue Oct 23, 2018 · 1 comment
Open

Create "Get Topic By ID" endpoint #31

haxwell opened this issue Oct 23, 2018 · 1 comment

Comments

@haxwell
Copy link
Member

haxwell commented Oct 23, 2018

URL: /api/topic/{id}

Method: GET

Returns a single topic from the database

returns:
{ "topics": [ { "id": 12, "text": "shakespeare" } ] }

Validation:
ID is numeric, greater than 0, less than or equal to the max Topic ID in the DB

errors: Return an error indicating the ID is invalid

@haxwell haxwell changed the title Create GetTopic endpoint Create "Get Topic By ID" endpoint Oct 30, 2018
@haxwell
Copy link
Member Author

haxwell commented Jan 9, 2019

Added detail to aid in grooming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant