isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict Jabines <jabines...@gmail.com>
Subject How to add an additional message in response? (RESTful)
Date Tue, 14 Nov 2017 14:32:31 GMT
I have a validateXxx() where I return a message "Name already exist." for
some conditions. I believe the response can be a json object. So how to add
another key - value in the response?

{
      ....
     "SomeMessage": "Name already exist."
      ....
}

Thanks,
- Paul

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message