Support for more advanced forms #24

Closed
wants to merge 4 commits into
from

Conversation

Projects
None yet
4 participants
Contributor

adamkaplan commented May 1, 2012

Added support for POST and PUT. These are helpful for using REST APIs... (though I now prefer not to use POST and PUT in practice)

Also added support for read-only and hidden fields. The former are displayed but not modifiable in the iodocs UI, while the latter are just hidden. These fields are generally helpful for supporting fields that are mandatory, but don't change often or ever.

adamkaplan added some commits Sep 13, 2011

@adamkaplan adamkaplan Added support for content-type application/json for post and push req…
…uests. Simply specify "dataFormat":"JSON" in your API endpoint config.
e50952d
@adamkaplan adamkaplan Added support for true JSON values in PUT and POST data. Previously J…
…SON data would be double-quoted, which could cause parsing anomolies. Any field maked as type JSON will default to this mode.
9b289c6
@adamkaplan adamkaplan Added support for 'Hidden'='Y' and 'Readonly'='Y' for making fields h…
…idden or readonly (or both)
19814e8
@adamkaplan adamkaplan Merge remote-tracking branch 'upstream/master' c13acd9

mansilladev was assigned May 3, 2012

haimich commented Dec 6, 2012

If this would be merged into the master it would help me a lot. Thanks for you work!

haimich commented Dec 7, 2012

I manually merged your code into my application and I'm trying to figure out how to configure the endpoint file to use json in my POST body. Could you please give me an example for the exact syntax?

Contributor

mansilladev commented Dec 7, 2012

+1. Adam, can you send over your config file? Also, if you have it running in public area, can you send over URL? Thanks.

Contributor

adamkaplan commented Apr 11, 2013

Sorry for missing your comments... I just happened to check up on this.

Here is a snipped of config that works for "HTTPMethod":"POST", or "HTTPMethod":"PUT",

{
   "MethodName":"Create",
   "Synopsis":"Creates a new message",
   "HTTPMethod":"POST",
   "DataFormat":"JSON",
   "URI":"generators",
   "parameters":[
      {
         "Name":"name",
         "Required":"Y",
         "Default":"",
         "Type":"String",
         "Description":"Fully qualified name"
      },
      {
         "Name":"parameters",
         "Required":"N",
         "Default":"{ }",
         "Type":"JSON",                                                                                                                                                                                                                                                       
         "Description":"JSON associative array of parameters"
      }
   ]
}
Contributor

alexadkins commented Jul 24, 2014

POST/PUT support in commit 8ff62fc

alexadkins closed this Jul 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment