Added API sample for creating form

Added API sample for creating form