Build a RESTful API with Node, Express and MySQL CRUD - Part 3 | Create New Resource

preview_player
Показать описание
build restful api, Learn expressjs mysql crud GET tutorial for beginners, express js mysql crud GET, node expressjs mysql GET tutorial, expressjs mysql tutorial, express node js tutorial, express js tutorial 2023, express node js mongodb, express node js rest api, express node js tutorial for beginners, express node tutorial, express node mysql, express node js project, express node js mysql, express nodemon, express js crash course, express js project, express js api, expressjs tutorial for beginners, node express, node express mongodb tutorial, node express mysql, node express api

Node express project, node express mongodb, node express typescript, node express rest api, node express react, express js api, express js app, express js api tutorial, express js advanced, express js and mongodb tutorial, express js tutorial youtube, tutorial express js, express js mongodb, express js explained, express js mysql, express js routing, express js full course, express js routes tutorial, express js route params, express js routes in separate file, express js router example, express js route with parameter, express js mongodb crud, express js mongodb, express js mongodb insert, express js mongoose example, express js mongoose, express js mongoose tutorial, express js database tutorial, express js database

Build a RESTful API with Express and MySQL CRUD

MongoDB Tutorial For Beginners

ExpressJS Tutorial For Beginners Playlist

ExpressJS Tutorial For Beginners #1

ExpressJS Tutorial For Beginners #2

ExpressJS Tutorial For Beginners #3

ExpressJS Tutorial For Beginners #4

ExpressJS Tutorial For Beginners #5

ExpressJS Tutorial For Beginners #6

ExpressJS Tutorial For Beginners #7

ExpressJS Tutorial For Beginners #8

ExpressJS Tutorial For Beginners #9

ExpressJS Tutorial For Beginners #10

ExpressJS Tutorial For Beginners #11

ExpressJS Tutorial For Beginners #12

ExpressJS Tutorial For Beginners #13

ExpressJS Tutorial For Beginners #14

ExpressJS Tutorial For Beginners # 17
Рекомендации по теме
Комментарии
Автор

me the response is not displaying in postmam, any help please ?

TechEase
Автор

This is the error I encountered at the end:
code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD',
errno: 1366,
sqlMessage: "Incorrect integer value: 'false' for column 'active' at row 1",
sqlState: 'HY000',
index: 0,
sql: "INSERT INTO tickets (title, description, active) VALUES ('Creating my first issue test', 'This is a description ', 'false')"

cosole.log for request.body is:
{
title: 'Creating my first issue',
description: 'This is a description',
active: 'false'
}

Had to add the below lines to get it working:
if(!active) {
active = true;
} else {
active = active.toLowerCase() == 'true' ? true : false
}

Any idea why you did not encounter this error?

santoshbista