0

I am new to Spring boot and have no prior experience in spring boot and I have below requirement

I have an UI with multiple fields ( check boxes, Text fields , drop downs etc). when user edit a record and submit button clicked , my rest service will be called.

Here I need to take the multiple ( almost 10) parameters in my request and save them into database.

and can I declare ENUM values for drop downs?

what is the best way to achieve this.

1 Answer 1

2

What I would do is define an object, say InterfaceState, that will contain all variations that you mentioned as properties. Construct your object and put it in the body of the request. Server side use:

.. @RequestBody("interfaceState") InterfaceState interfaceState ..

in the API which handles the request.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.