added SecurityAPI to API; and vscode test

This commit is contained in:
Brian Long 2022-02-02 11:20:25 -05:00
parent 0f15c9adc0
commit 64a65e35ee
3 changed files with 19 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package com.inteligr8.buxfer;
import com.inteligr8.buxfer.api.CommandApi;
import com.inteligr8.buxfer.api.SecurityApi;
/**
* 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 {
SecurityApi getSecurityApi();
CommandApi getCommandApi();
}

View File

@ -1,6 +1,7 @@
package com.inteligr8.buxfer;
import com.inteligr8.buxfer.api.CommandApi;
import com.inteligr8.buxfer.api.SecurityApi;
import com.inteligr8.rs.Client;
/**
@ -21,6 +22,10 @@ public class BuxferPublicRestApiImpl implements BuxferPublicRestApi {
return this.client.getApi(apiClass);
}
public SecurityApi getSecurityApi() {
return this.client.getApi(SecurityApi.class);
}
public CommandApi getCommandApi() {
return this.client.getApi(CommandApi.class);
}

View 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}}