10 Replies Latest reply on Oct 24, 2013 8:07 AM by shawkins

    REST:URI accepting null parameter?

    gioppoluca

      I've defined a virtual procedure to be exposed as a REST API, but I'd like to have a REST:URI like this one:

       

      mypath/{id}

       

      where {id} can be null and I can have in the procedure a IF cluse that either get the select * from table or in the other case build the WHERE clause.

       

      Do I have to create two procedures?

      One for the "mypath/"

      the other for the "mypath/{id}"

       

      Since the id input parameter is nullable I expected that it could accept a null