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:
martmull
2025-06-23 18:24:42 +02:00
committed by GitHub
parent 06fddc2ae0
commit 6e4dc16f2b
6 changed files with 302 additions and 22 deletions

View File

@ -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()),
);