Skip to content

Commit 2d59152

Browse files
committed
Rename ClientApi to DocApi.
1 parent 3446560 commit 2d59152

10 files changed

Lines changed: 17 additions & 21 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import com.docraptor.*;
3939

4040
public class Sync {
4141
public static void main(String[] args) throws Exception {
42-
ClientApi docraptor = new ClientApi();
42+
DocApi docraptor = new DocApi();
4343
ApiClientclient = docraptor.getApiClient();
4444
client.setUsername("YOUR_API_KEY_HERE"); // this key works for test documents
4545
//client.setDebugging(true);

docraptor.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ schemes: [https]
1010
securityDefinitions:
1111
basicAuth:
1212
type: basic
13-
description: HTTP Basic Authentication. Works over `HTTP` and `HTTPS`
13+
description: Use your API key as the username. Password does not need to be set.
1414
produces:
1515
- application/json
1616
- application/xml
@@ -22,11 +22,10 @@ paths:
2222
/docs:
2323
post:
2424
operationId: createDoc
25-
tags: [Client]
25+
tags: [Doc]
2626
description: >
2727
Creates a document synchronously.
2828
security:
29-
3029
- basicAuth: []
3130
parameters:
3231
- name: doc
@@ -54,7 +53,7 @@ paths:
5453
/async_docs:
5554
post:
5655
operationId: createAsyncDoc
57-
tags: [Client]
56+
tags: [Doc]
5857
description: >
5958
Creates a document asynchronously.
6059
You must use a callback url or the the returned status id and the status api to find out when it completes.
@@ -87,11 +86,10 @@ paths:
8786
/status/{id}:
8887
get:
8988
operationId: getAsyncDocStatus
90-
tags: [Client]
89+
tags: [Doc]
9190
description: >
9291
Check on the status of an asynchronously created document.
9392
security:
94-
9593
- basicAuth: []
9694
parameters:
9795
- name: id
@@ -112,15 +110,13 @@ paths:
112110
500:
113111
description: Server Error
114112

115-
116113
/download/{id}:
117114
get:
118115
operationId: getAsyncDoc
119-
tags: [Client]
120-
description:
116+
tags: [Doc]
117+
description: >
121118
Downloads a document.
122119
security:
123-
124120
- basicAuth: []
125121
parameters:
126122
- name: id

examples/Async.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
public class Async {
1818
public static void main(String[] args) throws Exception {
1919
try {
20-
ClientApi docraptor = new ClientApi();
20+
DocApi docraptor = new DocApi();
2121
ApiClient client = docraptor.getApiClient();
2222
client.setUsername("YOUR_API_KEY_HERE"); // this key works for test documents
2323
// client.setDebugging(true);

examples/Sync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
public class Sync {
1919
public static void main(String[] args) throws Exception {
20-
ClientApi docraptor = new ClientApi();
20+
DocApi docraptor = new DocApi();
2121
ApiClient client = docraptor.getApiClient();
2222
client.setUsername("YOUR_API_KEY_HERE"); // this key works for test documents
2323
// client.setDebugging(true);

src/main/java/com/docraptor/ClientApi.java renamed to src/main/java/com/docraptor/DocApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
import java.util.*;
1515

1616

17-
public class ClientApi {
17+
public class DocApi {
1818
private ApiClient apiClient;
1919

20-
public ClientApi() {
20+
public DocApi() {
2121
this(Configuration.getDefaultApiClient());
2222
}
2323

24-
public ClientApi(ApiClient apiClient) {
24+
public DocApi(ApiClient apiClient) {
2525
this.apiClient = apiClient;
2626
}
2727

test/Async.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public class Async {
66
public static void main(String[] args) throws Exception {
7-
ClientApi docraptor = new ClientApi();
7+
DocApi docraptor = new DocApi();
88
ApiClient client = docraptor.getApiClient();
99
client.setUsername("YOUR_API_KEY_HERE");
1010
// client.setDebugging(true);

test/InvalidAsync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public class InvalidAsync {
66
public static void main(String[] args) throws Exception {
7-
ClientApi docraptor = new ClientApi();
7+
DocApi docraptor = new DocApi();
88
ApiClient client = docraptor.getApiClient();
99
client.setUsername("YOUR_API_KEY_HERE");
1010
// client.setDebugging(true);

test/InvalidSync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public class InvalidSync {
66
public static void main(String[] args) throws Exception {
7-
ClientApi docraptor = new ClientApi();
7+
DocApi docraptor = new DocApi();
88
ApiClient client = docraptor.getApiClient();
99
client.setUsername("YOUR_API_KEY_HERE");
1010
// client.setDebugging(true);

test/Sync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public class Sync {
66
public static void main(String[] args) throws Exception {
7-
ClientApi docraptor = new ClientApi();
7+
DocApi docraptor = new DocApi();
88
ApiClient client = docraptor.getApiClient();
99
client.setUsername("YOUR_API_KEY_HERE");
1010
// client.setDebugging(true);

test/Xlsx.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public class Xlsx {
66
public static void main(String[] args) throws Exception {
7-
ClientApi docraptor = new ClientApi();
7+
DocApi docraptor = new DocApi();
88
ApiClient client = docraptor.getApiClient();
99
client.setUsername("YOUR_API_KEY_HERE");
1010
// client.setDebugging(true);

0 commit comments

Comments
 (0)