best way to call rest end points in react code example Example: command to start api on react npm run api