day-cohort-70 / rare-api-rare-bear-team-4

rare-api-rare-bear-team-4 created by GitHub Classroom
0 stars 0 forks source link

Feature/categories view #63

Closed Marceline-G-S closed 3 months ago

Marceline-G-S commented 3 months ago

Ticket:

52

What Changed:

Created categories views Created category view. Added API Get, Put, Post, and Delete.

Testing Steps:

pull down the branch

run the json server

make a GET request using postman to http://localhost:8088/categories

verify that response returns an array of categories

make a GET request using postman to http://localhost:8088/categories/1

verify that the response returns a single tag with the PK of 1

make post request using postman to http://localhost:8088/categories

select raw from dropdown. Enter object in body using format:

{ "label":"put label here" }

 verify that new entry appears in categories through Get

make put request using postman to http://localhost:8088/categories/1

select raw from dropdown. Enter object in body using format:

{ "label":"put label here" }