Announcement Announcement Module
Collapse
No announcement yet.
Spring MVC newbie- how to receive list of values as an input parameter in a REST API Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring MVC newbie- how to receive list of values as an input parameter in a REST API

    Hello all,

    In a Java REST API that I am working on, I am using Spring MVC.

    Now, there is a API endpoint required for fetching user information for multiple users, which should accept a list of user IDs (IDs are numeric values) as input-- how do I create such an API endpoint? I have used regular input parameters but dont know how to work with lists as input parameters in Spring MVC based REST APIs.

    Any help would be appreciated.

    Also, if I have a few input parameters like an Integer value, a String value, and a List of values -- how do I create the API endpoint and define the list of values correctly in this scenario?

    Thanks,
    Arvind.
Working...
X