Get Involved. Join the Conversation.


    Ankur Jain
    Create a REST API request with array type
    Topic posted August 9, 2019 by Ankur JainBronze Trophy: 5,000+ Points, tagged API, Integration 
    25 Views, 2 Comments
    Create a REST API request with array type

    Hi Expert,

    Can we create an REST API in OICwhich can accept a request parameter as a array type. If yes, can you please let us know how to achieve this ?



    • Hemanth Lakkaraju

      Can you clarify more? I'm assuming JSON Array type in request payload.


    • Kanchankumar Khedkar

      Hello Ankur, 

      If you want to parameter to have multiple values say e.g. to fine items with item number 1,2,3. you can have it simply as a parameter say q and implement 

      q=Id=1,2,3; then in OIC implementation you can tokenize this string write logic as per your requirement. if you want multiple such thing say Org = ABC then you can have different seperator. 

      Please ignore if your query was something else.