アプリケーションプログラミングインターフェースガイド> DSL API> データビュー>
 
SQLのみでのビューの作成
curl -d "[\"CREATE DATA VIEW /shared/examples/myview DEFINE AS SELECT OrderID FROM /shared/examples/ViewOrder\"]" -u "admin:admin" -X POST "http://localhost:9400/rest/execute/v1/actions/dsl/invoke" -H "Content-Type:application/json"
SQLとアノテーションを使用したビューの作成
curl -d "[\"CREATE DATA VIEW /shared/examples/myview DEFINE AS SELECT OrderID FROM /shared/examples/ViewOrder SET ANNOTATION 'this view is created using DSL'\"]" -u "admin:admin" -X POST "http://localhost:9400/rest/execute/v1/actions/dsl/invoke" -H "Content-Type:application/json"
SQLとアノテーションを使用して存在しない場合でのデータビューの作成
curl -d "[\"CREATE DATA VIEW IF NOT EXISTS /shared/examples/myview DEFINE AS SELECT OrderID FROM /shared/examples/ViewOrder SET ANNOTATION 'this view is created using DSL'\"]" -u "admin:admin" -X POST "http://localhost:9400/rest/execute/v1/actions/dsl/invoke" -H "Content-Type:application/json"