sk_api_schema 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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, not reflecting the api version. It is used in
20
- SalesKing to deliver it's resources BUT changes might not be directly reflected.
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.12
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 text",
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 with a date after the date"
114
+ "description": "All objects updated on/after the date"
103
115
  },
104
116
  "filter[to]":{
105
117
  "title" : "To date",
106
- "description": "All objects with date before the date"
118
+ "description": "All objects updated on/before the date"
107
119
  },
108
120
  "sort_by":{
109
121
  "title" : "Sort by",
@@ -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 adress.",
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 comments parent. Is the camelcased base class name: Document for invoice, credit_note,.., Contact for client",
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 comments parent object.",
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
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sk_api_schema}
8
- s.version = "0.0.12"
8
+ s.version = "0.0.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Georg Leciejewski"]
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Georg Leciejewski