added SecurityAPI to API; and vscode test
This commit is contained in:
parent
0f15c9adc0
commit
64a65e35ee
@ -1,6 +1,7 @@
|
|||||||
package com.inteligr8.buxfer;
|
package com.inteligr8.buxfer;
|
||||||
|
|
||||||
import com.inteligr8.buxfer.api.CommandApi;
|
import com.inteligr8.buxfer.api.CommandApi;
|
||||||
|
import com.inteligr8.buxfer.api.SecurityApi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface consolidates the JAX-RS APIs available in the Buxfer Public
|
* This interface consolidates the JAX-RS APIs available in the Buxfer Public
|
||||||
@ -10,6 +11,8 @@ import com.inteligr8.buxfer.api.CommandApi;
|
|||||||
*/
|
*/
|
||||||
public interface BuxferPublicRestApi {
|
public interface BuxferPublicRestApi {
|
||||||
|
|
||||||
|
SecurityApi getSecurityApi();
|
||||||
|
|
||||||
CommandApi getCommandApi();
|
CommandApi getCommandApi();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.inteligr8.buxfer;
|
package com.inteligr8.buxfer;
|
||||||
|
|
||||||
import com.inteligr8.buxfer.api.CommandApi;
|
import com.inteligr8.buxfer.api.CommandApi;
|
||||||
|
import com.inteligr8.buxfer.api.SecurityApi;
|
||||||
import com.inteligr8.rs.Client;
|
import com.inteligr8.rs.Client;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -21,6 +22,10 @@ public class BuxferPublicRestApiImpl implements BuxferPublicRestApi {
|
|||||||
return this.client.getApi(apiClass);
|
return this.client.getApi(apiClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public SecurityApi getSecurityApi() {
|
||||||
|
return this.client.getApi(SecurityApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
public CommandApi getCommandApi() {
|
public CommandApi getCommandApi() {
|
||||||
return this.client.getApi(CommandApi.class);
|
return this.client.getApi(CommandApi.class);
|
||||||
}
|
}
|
||||||
|
11
buxfer-public-rest-client/src/test/vscode/test.http
Normal file
11
buxfer-public-rest-client/src/test/vscode/test.http
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
# Authentication
|
||||||
|
# @name auth
|
||||||
|
POST https://www.buxfer.com/api/login
|
||||||
|
Content-type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
|
email=bmlong137@gmail.com
|
||||||
|
&password=mnM9zh,_n/-w
|
||||||
|
|
||||||
|
@token = {{auth.response.body.response.token}}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user