12660 bugapi create one person post api request example is returning 400 in playground (#12787)
Use faker to provide simple working examples for REST API create one, create many, update one and find duplicates Eg: <img width="1505" alt="image" src="https://github.com/user-attachments/assets/99be990f-efd6-4ad7-8c29-f9dcecac112f" />
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import { capitalize } from 'twenty-shared/utils';
|
||||
export const camelToTitleCase = (camelCaseText: string) =>
|
||||
capitalize(camelCaseText)
|
||||
.replace(/([A-Z])/g, ' $1')
|
||||
.replace(/^./, (str) => str.toUpperCase());
|
||||
capitalize(
|
||||
camelCaseText
|
||||
.replace(/([A-Z])/g, ' $1')
|
||||
.replace(/^./, (str) => str.toUpperCase()),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user