sk_api_schema 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +7 -0
- data/json/v1.0/product.json +6 -1
- data/lib/sk_api_schema/version.rb +1 -1
- metadata +92 -97
data/CHANGELOG.rdoc
CHANGED
@@ -2,7 +2,14 @@
|
|
2
2
|
|
3
3
|
A more detailed view of the changes can be found in the {commit messages}[https://github.com/salesking/sk_api_schema/commits/]
|
4
4
|
|
5
|
+
2012-07
|
6
|
+
* maxLength for all string properties with limits
|
7
|
+
* add "format":"text" to plain-text fields
|
8
|
+
* search products by number
|
9
|
+
|
5
10
|
2012-06
|
11
|
+
* line item discount can be negative
|
12
|
+
* tax and discount values with up to four decimal places
|
6
13
|
* add payments link to invoice, credit_note
|
7
14
|
* add due_date and due_days to order
|
8
15
|
* Deprecate payment.method in favour of payment.payment_method bcs 'method' is a keyword in programming
|
data/json/v1.0/product.json
CHANGED
@@ -81,7 +81,12 @@
|
|
81
81
|
},
|
82
82
|
"filter[q]":{
|
83
83
|
"title" : "Search",
|
84
|
-
"description": "
|
84
|
+
"description": "Wildcard search in number, name, description, price",
|
85
|
+
"type":["string", "number"]
|
86
|
+
},
|
87
|
+
"filter[number]":{
|
88
|
+
"title" : "By number",
|
89
|
+
"description": "Search by number. The number is matched from the start: %number",
|
85
90
|
"type":"string"
|
86
91
|
},
|
87
92
|
"sort_by":{
|
metadata
CHANGED
@@ -1,105 +1,107 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sk_api_schema
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 0
|
10
|
-
version: 0.4.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Georg Leciejewski
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
type: :runtime
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
-
none: false
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 3
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
version: "0"
|
31
|
-
version_requirements: *id001
|
32
|
-
prerelease: false
|
12
|
+
date: 2012-06-02 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
33
15
|
name: activesupport
|
34
|
-
|
35
|
-
type: :development
|
36
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
37
17
|
none: false
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
|
43
|
-
- 0
|
44
|
-
version: "0"
|
45
|
-
version_requirements: *id002
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
46
23
|
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
47
31
|
name: rdoc
|
48
|
-
|
49
|
-
type: :development
|
50
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
51
33
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
56
|
-
|
57
|
-
- 0
|
58
|
-
version: "0"
|
59
|
-
version_requirements: *id003
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
60
39
|
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
61
47
|
name: rspec
|
62
|
-
|
63
|
-
type: :development
|
64
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
65
49
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
|
71
|
-
- 0
|
72
|
-
version: "0"
|
73
|
-
version_requirements: *id004
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
74
55
|
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
75
63
|
name: simplecov
|
76
|
-
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
77
70
|
type: :development
|
78
|
-
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
73
|
none: false
|
80
|
-
requirements:
|
81
|
-
- -
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rake
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
88
85
|
version: 0.9.2
|
89
|
-
|
86
|
+
type: :development
|
90
87
|
prerelease: false
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.9.2
|
94
|
+
description: ! 'The SalesKing JSON Schema describes our business API in terms of available
|
95
|
+
objects, their fields and links to url endpoints with related objects.
|
96
|
+
|
97
|
+
Besides ruby users can use a small lib with utility methods to load and test the
|
98
|
+
schema files.'
|
95
99
|
email: gl@salesking.eu
|
96
100
|
executables: []
|
97
|
-
|
98
101
|
extensions: []
|
99
|
-
|
100
|
-
extra_rdoc_files:
|
102
|
+
extra_rdoc_files:
|
101
103
|
- README.rdoc
|
102
|
-
files:
|
104
|
+
files:
|
103
105
|
- .gitignore
|
104
106
|
- .travis.yml
|
105
107
|
- CHANGELOG.rdoc
|
@@ -138,36 +140,29 @@ files:
|
|
138
140
|
- spec/spec_helper.rb
|
139
141
|
homepage: http://github.com/salesking/sk_api_schema
|
140
142
|
licenses: []
|
141
|
-
|
142
143
|
post_install_message:
|
143
144
|
rdoc_options: []
|
144
|
-
|
145
|
-
require_paths:
|
145
|
+
require_paths:
|
146
146
|
- lib
|
147
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
148
|
none: false
|
149
|
-
requirements:
|
150
|
-
- -
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
|
153
|
-
segments:
|
149
|
+
requirements:
|
150
|
+
- - ! '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
segments:
|
154
154
|
- 0
|
155
|
-
|
156
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
+
hash: 4327447197195633951
|
156
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
157
|
none: false
|
158
|
-
requirements:
|
159
|
-
- -
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
|
162
|
-
segments:
|
163
|
-
- 0
|
164
|
-
version: "0"
|
158
|
+
requirements:
|
159
|
+
- - ! '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
165
162
|
requirements: []
|
166
|
-
|
167
163
|
rubyforge_project:
|
168
164
|
rubygems_version: 1.8.24
|
169
165
|
signing_key:
|
170
166
|
specification_version: 3
|
171
167
|
summary: SalesKing API - JSON Schema
|
172
168
|
test_files: []
|
173
|
-
|