sk_api_schema 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/VERSION +1 -1
- data/json/v1.0/email.json +16 -4
- data/json/v1.0/payment.json +12 -4
- data/sk_api_schema.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -16,8 +16,8 @@ http://dev.blog.salesking.eu/api/
|
|
16
16
|
The API-version, is kept in the folder-name and as long as there are no major
|
17
17
|
changes(breaking backwards compatibility), the version number will remain.
|
18
18
|
|
19
|
-
The gem has its own version
|
20
|
-
|
19
|
+
The gem has its own version number. It is used by SalesKing to deliver it's
|
20
|
+
resources BUT changes might not be directly reflected.
|
21
21
|
A new gem version indicates a change, but we first try it on our staging environment
|
22
22
|
before any live instances are updated.
|
23
23
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
data/json/v1.0/email.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{ "type":"object",
|
2
2
|
"title": "email",
|
3
|
-
"description":"An email in SK must always be related to an object.",
|
3
|
+
"description":"An email in SK must always be related to an object. Receivers are limited to 5 per address field.",
|
4
4
|
"properties": {
|
5
5
|
"id": {
|
6
6
|
"description": "uuid of the email",
|
@@ -94,16 +94,28 @@
|
|
94
94
|
},
|
95
95
|
"filter[q]":{
|
96
96
|
"title" : "Search",
|
97
|
-
"description": "Search in
|
97
|
+
"description": "Search in body and subject",
|
98
98
|
"type":"string"
|
99
99
|
},
|
100
|
+
"filter[sent]":{
|
101
|
+
"title" : "Sent emails",
|
102
|
+
"description": "Show only sent emails"
|
103
|
+
},
|
104
|
+
"filter[draft]":{
|
105
|
+
"title" : "Draft emails",
|
106
|
+
"description": "Show only draft emails"
|
107
|
+
},
|
108
|
+
"filter[address]":{
|
109
|
+
"title" : "Search in address",
|
110
|
+
"description": "Searches in all address fields: bcc, cc, to, from"
|
111
|
+
},
|
100
112
|
"filter[from]":{
|
101
113
|
"title" : "From date",
|
102
|
-
"description": "All objects
|
114
|
+
"description": "All objects updated on/after the date"
|
103
115
|
},
|
104
116
|
"filter[to]":{
|
105
117
|
"title" : "To date",
|
106
|
-
"description": "All objects
|
118
|
+
"description": "All objects updated on/before the date"
|
107
119
|
},
|
108
120
|
"sort_by":{
|
109
121
|
"title" : "Sort by",
|
data/json/v1.0/payment.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description":"An payment in SK must always be related to an object.",
|
4
4
|
"properties": {
|
5
5
|
"id": {
|
6
|
-
"description": "uuid of the
|
6
|
+
"description": "uuid of the object",
|
7
7
|
"identity":true,
|
8
8
|
"readonly":true,
|
9
9
|
"type":"string"
|
@@ -29,12 +29,12 @@
|
|
29
29
|
"type":"string"
|
30
30
|
},
|
31
31
|
"related_object_type": {
|
32
|
-
"description": "Object type of the
|
32
|
+
"description": "Object type of the payments parent. Is the camelcased base class name: Document for invoice, credit_note,.., Contact for client",
|
33
33
|
"required":true,
|
34
34
|
"type":"string"
|
35
35
|
},
|
36
36
|
"related_object_id": {
|
37
|
-
"description": "uuid of the
|
37
|
+
"description": "uuid of the payments parent object.",
|
38
38
|
"required":true,
|
39
39
|
"type":"string"
|
40
40
|
},
|
@@ -93,7 +93,15 @@
|
|
93
93
|
},
|
94
94
|
{ "rel": "create",
|
95
95
|
"href": "payments",
|
96
|
-
"method": "POST"
|
96
|
+
"method": "POST",
|
97
|
+
"properties" : {
|
98
|
+
"new_doc_status":{
|
99
|
+
"title" : "New status for document",
|
100
|
+
"description": "Convinience method to close a document with a payment.",
|
101
|
+
"enum": ['open','closed'],
|
102
|
+
"type":"string"
|
103
|
+
}
|
104
|
+
}
|
97
105
|
}
|
98
106
|
]
|
99
107
|
}
|
data/sk_api_schema.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sk_api_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 13
|
10
|
+
version: 0.0.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Georg Leciejewski
|