FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
A2API/apps/admin/sql/patch_Apply_post_request.sql at main · APIJSON/A2API · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
APIJSON
/
A2API
Public
forked from
TommyLemon/A2API
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
A2API
/
apps
/
admin
/
sql
/
patch_Apply_post_request.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (21 loc) · 1.06 KB
Breadcrumbs
A2API
/
apps
/
admin
/
sql
/
patch_Apply_post_request.sql
Copy path
File metadata and controls
23 lines (21 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--
Fix Apply create: APIJSON refuses client id on POST, so POST must use tag Apply
--
(alias → table Apply) without MUST:id. Run then reload Access/Request (or restart APIJSON).
DELETE
FROM
`
Access
`
WHERE
`
id
`
=
9002
OR
`
alias
`
=
'
Apply
'
;
INSERT INTO
`
Access
`
(
`
id
`
,
`
debug
`
,
`
schema
`
,
`
name
`
,
`
alias
`
,
`
get
`
,
`
head
`
,
`
gets
`
,
`
heads
`
,
`
post
`
,
`
put
`
,
`
delete
`
,
`
date
`
,
`
detail
`
)
VALUES
(
9002
,
0
,
NULL
,
'
Apply
'
,
'
Apply
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["LOGIN", "OWNER", "ADMIN"]
'
,
'
["ADMIN"]
'
,
NOW(),
'
Alias for Apply POST create (tag=Apply)
'
);
DELETE
FROM
`
Request
`
WHERE
`
tag
`
=
'
Apply
'
OR
(
`
tag
`
=
'
Apply
'
AND
`
method
`
=
'
POST
'
);
INSERT INTO
`
Request
`
(
`
id
`
,
`
debug
`
,
`
version
`
,
`
method
`
,
`
tag
`
,
`
structure
`
,
`
detail
`
,
`
date
`
)
VALUES
(
9001001
,
0
,
1
,
'
POST
'
,
'
Apply
'
,
'
{"MUST":"bizTable,operation,method,url,request,status","REFUSE":"id","INSERT":{"@role":"LOGIN"}}
'
,
'
Create A2API Apply via alias Apply (id auto-assigned)
'
, NOW());
Back
|
FazBrowse Home
|
New Git URL