happypdf_json_schema 0.1.4 → 0.1.5

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.
@@ -3,6 +3,11 @@
3
3
  A more detailed view of the changes can be found in the [commit messages](https://github.com/happypdf/happypdf_json_schema/commits/)
4
4
 
5
5
 
6
+ 2013-11
7
+
8
+ * add new pdf creation through POST /pdfs
9
+ * add fonts resource
10
+
6
11
  2013-10
7
12
 
8
13
  * add pdf resources
@@ -1,5 +1,5 @@
1
1
  module HappyPdf
2
2
  class Schema
3
- VERSION='0.1.4'
3
+ VERSION='0.1.5'
4
4
  end
5
5
  end
@@ -60,9 +60,25 @@
60
60
  "href": "api/pdfs",
61
61
  "properties": {
62
62
  "pdt_id":{
63
- "title" : "Template",
63
+ "title" : "PDF Template",
64
64
  "description": "ID of an PDF template to use.",
65
- "required": true
65
+ "required": true,
66
+ "type": "number"
67
+ },
68
+ "data":{
69
+ "title" : "Data",
70
+ "description": "The data (text, images) rendered into the placeholder blocks e.g.: {'my-block-name': 'my content', 'firstname': 'Edward'} The object is just a plain hash with the block-name as key and the respecting value.",
71
+ "type": "object"
72
+ },
73
+ "author":{
74
+ "title" : "PDF Author",
75
+ "description": "If not set the author is taken from the PDF template setting or falls back to happyPDF.",
76
+ "type": "string"
77
+ },
78
+ "title":{
79
+ "title" : "PDF title",
80
+ "description": "If not set the title is taken from the PDF template setting.",
81
+ "type": "string"
66
82
  }
67
83
  }
68
84
  },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happypdf_json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: