You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| user_id_field | Field name of user id, related to query user own data. |
27
29
| secret_fields | Secret fields won't be exposed. |
28
-
| rbac_get | Configure of roles or permissions for apijson 'get' method |
30
+
| GET/HEAD/POST/PUT/DELETE | Configure of roles or permissions for apijson methods |
31
+
32
+
# apijson request configuration
33
+
34
+
## example
35
+
36
+
```
37
+
[APIJSON_REQUESTS]
38
+
moment = {
39
+
"moment": {
40
+
"POST" :{
41
+
"ADD":{"@role": "OWNER"},
42
+
"DISALLOW" : ["id"],
43
+
"NECESSARY" : ["content"],
44
+
},
45
+
"PUT" :{
46
+
"ADD":{"@role": "OWNER"},
47
+
"NECESSARY" : ["id","content"],
48
+
},
49
+
}
50
+
}
51
+
```
52
+
## document
53
+
54
+
settings.APIJSON_REQUESTS.[TAG_NAME]
55
+
56
+
request types currently support: POST, PUT
57
+
request configuration currently support: ADD,DISALLOW,NECESSARY (still not fully support [all the configuration items](https://github.com/TommyLemon/APIJSON/wiki#%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86))
0 commit comments