nss-day-cohort-46 / rare-server-groovy-goblins

rare-server-groovy-goblins created by GitHub Classroom
0 stars 2 forks source link

feat: user can create new categories. #51

Closed CheoR closed 3 years ago

CheoR commented 3 years ago

Description

User can create new categories (through postman). Frontend portion sent as a separate pull request.

Closes #6

Type of change

Please delete options that are not relevant.

Testing Instructions

In terminal, run

watchgod request_handler.main

In postman, under the POST tab,

http://localhost:8088/categories in body > raw

{
    "label": "new_label_here"
}

Successful creation returns the created object.

To view labels, in SQL file, run

SELECT * FROM Categories;

Checklist:

notdanross commented 3 years ago

Looks good.