DEV Community

Cover image for 🚀 API Maker - Master Save / Update - Save Single or Multiple API Records
API Maker®
API Maker®

Posted on

3 3 1 1 2

🚀 API Maker - Master Save / Update - Save Single or Multiple API Records

✅ Master save / update work based on primary key
▸ User can update the record by passing the primary key field in the payload, if the user does not pass it, the record will be inserted.

✅ On multiple object, we can perform both operation
▸ like, If we have two object in single payload, we can perform insert for one object and update for another object.

✅ Nested level insert/update possible
▸ Insert and Update support up to N-number of nested level, No any limit.

✅ Multiple database update in same payload
▸ Inserting/updating on different types of databases in the same payload can also be managed in this API.
▸ like, Sellers product listed on MongoDB > product collection and Buyers order transaction maintain on oracle > order_transaction table, that is possible using this API.

✅ This API work like transaction in database
▸ Rolling back the operation in different databases completely if any operation fails.

✅ User can save single or multiple records
▸ having some inbuilt validation and conversion functionality.

✅ Generate Dummy Payload [Single | Multiple]
▸ Based on schema, user can generate dummy data with a single click by using Generated Data option in body section.

✅ Modify response using Query Params [select | deep]
▸ select - Retrieve the fields based on the user's needs.
▸ deep - Obtain more precise / details data in a certain field.


⭐ Validation ⭐

👉 API Maker validate the payload using below validator.
▸ required
▸ email
▸ max
▸ maxLength
▸ min
▸ minLength
▸ unique
▸ validatorFun [Custom validator function]


⭐ Conversion ⭐

👉 API Maker can convert the payload using below conversion.
▸ encryption
▸ hashing
▸ toLowerCase
▸ toUpperCase
▸ trim
▸ trimStart
▸ trimEnd
▸ conversionFun [Custom conversion function]


Youtube video link

https://youtu.be/hVFvHjcl98c

Websites

https://apimaker.dev

API Docs link

https://docs.apimaker.dev/v1/docs/apis-all/generated-apis/auto-generated-master-save-api.html

https://docs.apimaker.dev/v1/docs/apis-all/schema-apis/auto-generated-schema-based-master-save-api.html

More Examples

https://docs.apimaker.dev/v1/examples/sys/db/masterSave.html

https://docs.apimaker.dev/v1/examples/sys/db/gen/masterSaveGen.html

Follow on twitter

https://twitter.com/api_maker

Linked In

https://www.linkedin.com/company/api-maker

More YouTube Videos

https://www.youtube.com/@api_maker/playlists

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay