Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Product Manuals » Elevate Web Builder 3 Manual » Using the Web Server » Web Server Database Access API |
<Origin>/databases/<Database>[/<DataSet>[/Data]]?<Parameters> <Origin> = <Protocol>://<Domain>[:<Port>] <Database> = Database name <DataSet> = DataSet name <Parameters> = URL parameters in key=value form and an ampersand (&) between parameters
Column Type | Description |
0 | Unknown type - will cause an error when the columns are loaded |
1 | String - requires a column length for fixed-length columns, null for variable-length columns |
2 | Boolean |
3 | Integer |
4 | Float - can have a column scale specified |
5 | Date |
6 | Time |
7 | Date/Time |
8 | BLOB |
9 | CLOB (non-browser clients only) |
<Column Name>_ContentType
https://localhost/example/albums
{ "Columns": [{ "Name": "ID", "Type": 1, "Length": 38, "Scale": null }, { "Name": "Title", "Type": 1, "Length": 60, "Scale": null }, { "Name": "Artist", "Type": 1, "Length": 40, "Scale": null }, { "Name": "SortArtist", "Type": 1, "Length": 40, "Scale": null }, { "Name": "Year", "Type": 3, "Length": null, "Scale": null }, { "Name": "Label", "Type": 1, "Length": 40, "Scale": null }, { "Name": "CoverArt", "Type": 8, "Length": null, "Scale": null }, { "Name": "CoverArt_ContentType", "Type": 1, "Length": 40, "Scale": null }] }
Column Type | Description |
0 | Unknown type |
1 | String |
2 | Boolean |
3 | Integer |
4 | Float |
5 | Date |
6 | Time |
7 | Date/Time |
8 | BLOB |
9 | CLOB (non-browser clients only) |
https://localhost/example/tracks/params
{ "Params": [{ "Name": "AlbumID", "Type": 1 }] }
Column Type | Description |
String CLOB (non-browser clients only) BLOB | Enclose non-null values in double quotes. |
Boolean | Specify true or false literals for non-null values. |
Integer | Specify any valid integer value (positive or negative) for non-null values. |
Float | Specify any valid floating-point value for non-null values. If not null, the incoming value must use the period (.) decimal separator if it contains fractional digits. |
Date Time Date/Time | Specify any valid integer value (positive or negative) for non-null values. If not null, the incoming value represents the number of milliseconds since midnight on January 1, 1970. |
https://localhost/example/albums/data?ID=0201c645-c8fe-46b0-b785-815a617a1136
{ "Rows": [{ "ID": "0201c645-c8fe-46b0-b785-815a617a1136", "Title": "August and Everything After", "Artist": "Counting Crows", "SortArtist": "Counting Crows", "Year": 1993, "Label": "BMG Direct Marketing, Inc.", "CoverArt": "?column=CoverArt&ID=0201c645-c8fe-46b0-b785-815a617a1136", "CoverArt_ContentType": "image\/jpeg" }] }
https://localhost/example/albums/data?column=CoverArt&ID=0201c645-c8fe-46b0-b785-815a617a1136
Operation Type | Description |
1 | Insert - the beforerow value will be null and the afterrow value will contain the row data for the inserted row. |
2 | Update - the beforerow value will contain the row data for the row before the update, and the afterrow value will contain the row data for the row after the update. |
3 | Delete - the beforerow value will contain the row data for the row before the deletion, and the afterrow value will be null. |
https://localhost/example
{ "Operations": [{ "DataSet": "Orders", "RowSet": 2, "Operation": 2, "BeforeRow": { "EWBRowID": 4, "OrderNo": 1006, "CustNo": 1380, "SaleDate": 1497398400000, "ShipDate": 594907200000, "EmpNo": 46, "ShipVIA": "Emery", "PO": "P101324", "Terms": "FOB", "PaymentMethod": "Visa", "ItemsTotal": 31987, "TaxRate": 0, "Freight": 0, "AmountPaid": 0 }, "AfterRow": { "EWBRowID": 4, "OrderNo": 1006, "CustNo": 1380, "SaleDate": 1497398400000, "ShipDate": 594907200000, "EmpNo": 110, "PO": "P101324", "Terms": "FOB", "PaymentMethod": "Visa", "ItemsTotal": 31987, "TaxRate": 0, "Freight": 0, "AmountPaid": 0 } }] }
{ "Rows": [{ "RowSet": 2, "EWBRowID": 4, "Row": { } }]}
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |