Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create / Update Product API #18

Open
ThanhIsHereee opened this issue Apr 4, 2024 · 3 comments
Open

Create / Update Product API #18

ThanhIsHereee opened this issue Apr 4, 2024 · 3 comments
Assignees

Comments

@ThanhIsHereee
Copy link

No description provided.

@ThanhIsHereee ThanhIsHereee changed the title updateProduct UPDATE PRODUCT API Apr 4, 2024
@bentran1vn bentran1vn changed the title UPDATE PRODUCT API Update Product API Apr 4, 2024
@bentran1vn bentran1vn changed the title Update Product API Create / Update Product API Apr 4, 2024
@ThanhIsHereee ThanhIsHereee assigned ghost Apr 4, 2024
@bentran1vn bentran1vn assigned Lamhoang2402 and unassigned ghost Apr 4, 2024
@ThanhIsHereee
Copy link
Author

ThanhIsHereee commented Apr 10, 2024

Create / Update Product API is written for Admin to create or update products.
this API will check the role of the current user was Admin. Then they can create by filling in all the fill.
If the Product_name was not found in the database then create it.
If the Product_name exists in the database then update it.
After create or update create the logs entity and save all of it to the server.
request type:

  • in updating follow the ERD

response type:

  • success: return success message
  • fail by saveFailed throw exception with message

@Lamhoang2402
Copy link
Contributor

No description provided.

@Lamhoang2402
Copy link
Contributor

Complete the create-update function.
This is a demo of the function.

70662d9a-7209-46ae-8a9e-83b816bdf81e.mp4

@bentran1vn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants