File tree Expand file tree Collapse file tree
src/main/java/com/docraptor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import com.docraptor.*;
3939
4040public 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);
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ schemes: [https]
1010securityDefinitions :
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.
1414produces :
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
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
Original file line number Diff line number Diff line change 1717public 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);
Original file line number Diff line number Diff line change 1717
1818public 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);
Original file line number Diff line number Diff line change 1414import 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
Original file line number Diff line number Diff line change 44
55public 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);
Original file line number Diff line number Diff line change 44
55public 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);
Original file line number Diff line number Diff line change 44
55public 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);
Original file line number Diff line number Diff line change 44
55public 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);
Original file line number Diff line number Diff line change 44
55public 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);
You can’t perform that action at this time.
0 commit comments