We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6962b31 + 1b303bf commit 20a9c31Copy full SHA for 20a9c31
6 files changed
CHANGELOG.md
@@ -1,5 +1,16 @@
1
# Changelog
2
3
+- 0.2.1(2019-10-22)
4
+ - **apison-post: modify to be same with original apijson, just return "id" and "count", not other fields**
5
+ - apijson-table: fix key and title problem in viewedit_items
6
+ - apijson-viewedit: fix @role
7
+ - apijson-table: fix apijson-put and apijson-delete @role not work problem
8
+ - doc: add difference in tag parameter in apijson post/put
9
+ - **tests: add 97 test cases, and fix bugs found by tests**
10
+ - fix "NameError: name 'log' is not defined"
11
+ - fix py2/3 compatible
12
+ - fix issue #4 :"NameError: name 'UliwebError' is not defined"
13
+ - apijson-table: add hook_add, for customizing the add action in apijson-table component
14
- 0.2.0(2019-09-17)
15
- setup: add fix utf8 for reading file
16
- **fix json response structure to be same as original apijson api (java)**
tests/demo/apps/apijson_demo/models.py
@@ -31,3 +31,7 @@ class Comment(Model):
31
class PublicNotice(Model):
32
date = Field(datetime.datetime, auto_now_add=True)
33
content = Field(TEXT)
34
+
35
+class NoRequestTag(Model):
36
+ user_id = Reference("user")
37
+ content = Field(TEXT)
tests/demo/apps/apijson_demo/settings.ini
@@ -3,6 +3,7 @@ privacy = 'apijson_demo.models.Privacy'
comment = 'apijson_demo.models.Comment'
moment = 'apijson_demo.models.Moment'
publicnotice = 'apijson_demo.models.PublicNotice'
+norequesttag = 'apijson_demo.models.NoRequestTag'
[APIJSON_MODELS]
user = {
@@ -42,8 +43,8 @@ publicnotice = {
42
43
"GET" : { "roles" : ["OWNER","LOGIN","ADMIN","UNKNOWN"] },
44
"HEAD" : { "roles" : ["OWNER","LOGIN","ADMIN","UNKNOWN"] },
45
"POST" : { "roles" : ["OWNER","ADMIN"] },
- "PUT" : { "roles" : ["OWNER","ADMIN"] },
46
- "DELETE" : { "roles" : ["OWNER","ADMIN"] },
+ "PUT" : { "roles" : ["OWNER","ADMIN","UNKNOWN"] },
47
+ "DELETE" : { "roles" : ["OWNER","ADMIN","UNKNOWN"] },
48
}
49
50
[APIJSON_REQUESTS]
@@ -68,5 +69,12 @@ comment = {
68
69
"PUT" :{
70
"ADD":{"@role": "OWNER"},
71
"NECESSARY" : ["id","content"],
72
+ "DISALLOW" : ["user_id","to_id"],
73
},
74
75
76
+publicnotice = {
77
+ "PUT" :{
78
+ "NECESSARY" : ["id","content"],
79
+ }
80
+}
0 commit comments