chicken-sloths / bangazon-api-sprint1

API for a mock Amazon + Etsy platform providing developers access to the company's employee & product data
0 stars 0 forks source link

Rename all functions in project #112

Open joechesney opened 6 years ago

joechesney commented 6 years ago

Context

Rename all functions to have similar naming conventions.

Associated Product Ticket

Process

Determine naming conventions and then make sure that all functions are changed in entire project. This includes all exports and imports(requires).

Naming Conventions:

in Controller: long descriptive function names. ex: getAllCustomers getOneCustomer postNewCustomer // We decided to combine POST and PUT into the same function, so we'll just have one function called update[table name] ex: updateCustomer

in Model: very short function names. ex: getAll getOne postNew // We decided to combine POST and PUT into the same function, so we'll just have one function called update updateOne ex: update

Expected Result

Nice-looking, consistent code across entire project.