REST API - create
The table summarizes the REST API - create.
Request
Format | POST <baseurl>/globaldata/dataview/create |
Body | viewSpecification. Contains the parameters in the ViewSpecification element (from the BusinessDataServices schema). See Defining Dataview Conditions . |
Response
JSON | Returns a JSON representation of the contents of a CreateDataViewResponseelement. |
XML | Returns the contents of a CreateDataViewResponseelement (from the BusinessDataServices schema) |
Example
Request | POST <baseurl>/globaldata/dataview/create |
Body | <xml-fragment> <viewSpecification> <caseClassDetails> <caseClass>com.example.gddemo.Car</caseClass> <majorVersion>2</majorVersion> </caseClassDetails> <name>Mid-Range Cars</name> <description>Cars with mid-range features</description> </viewSpecification> </xml-fragment> |
Response | { "viewID": 3 } |