Alle API's via nieuwe stijl fields
svn path=/Website/trunk/; revision=24435
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
|
||||
File: model_apis.inc
|
||||
|
||||
Description: Api model. Dit bestand heeft niets met interfacing te maken
|
||||
maar werkt uitsluitend op JSON-data
|
||||
Description: Api model.
|
||||
Parameters:
|
||||
Context:
|
||||
|
||||
@@ -16,11 +15,12 @@
|
||||
<%
|
||||
model_apis =
|
||||
{
|
||||
table: null,
|
||||
primary: null,
|
||||
table: "apis",
|
||||
primary: "id",
|
||||
records_name: "apis",
|
||||
record_name: "api",
|
||||
fields: [],
|
||||
fields : { "id" : { xxdbs: "fac_usrrap_key", typ: "varchar", label: "Api", filter: "exact" }},
|
||||
|
||||
REST_GET: function _GET(params)
|
||||
{
|
||||
var autfunction = "WEB_PRSSYS"; // is dit niet erg streng?
|
||||
@@ -57,6 +57,10 @@ model_apis =
|
||||
},
|
||||
DELETE: function (params) /* delete api */
|
||||
{
|
||||
}
|
||||
},
|
||||
|
||||
search: { autosubmit: true },
|
||||
list: { default_url: "api2/{0}.scf" }
|
||||
// list: { default_url: "api2/{0}.api?pretty=1" }
|
||||
}
|
||||
%>
|
||||
Reference in New Issue
Block a user