Skip to content

Commit f7385c9

Browse files
authored
Merge pull request #1 from Docparser/layouts-api
Added a new API endpoint for fetching parser layout models
2 parents 9c83a21 + 3ba1ea2 commit f7385c9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

100755100644
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ package-lock.json
22
node_modules
33
.idea
44
.editorconfig
5-
.DS_Store
5+
.DS_Store
6+
nbproject

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ function Client (authToken) {
2828
return this.httpClient.get(generateUrl('parsers'))
2929
}
3030

31+
this.getParserModelLayouts = function (parserId) {
32+
return this.httpClient.get(generateUrl('parser/models/' + parserId));
33+
}
34+
3135
this.fetchDocumentFromURL = function (parserId, remoteURL, options) {
3236
var endpoint = generateUrl('document/fetch/' + parserId)
3337
var request = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docparser-node",
3-
"version": "1.2.1",
3+
"version": "1.3.0",
44
"description": "Docparser API Node Client",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)