Revert back to graphql endpoint

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-01-20 07:47:48 -08:00
parent 789c4cd1c0
commit 2b11ff90af
6 changed files with 13 additions and 13 deletions

View File

@@ -3,7 +3,7 @@ import { makeFetchQuery } from "@probo/relay";
export const coreEnvironment = new Environment({ export const coreEnvironment = new Environment({
configName: "core", configName: "core",
network: Network.create(makeFetchQuery("/api/console/v1/query")), network: Network.create(makeFetchQuery("/api/console/v1/graphql")),
store: new Store(new RecordSource(), { store: new Store(new RecordSource(), {
queryCacheExpirationTime: 1 * 60 * 1000, queryCacheExpirationTime: 1 * 60 * 1000,
gcReleaseBufferSize: 20, gcReleaseBufferSize: 20,

View File

@@ -113,7 +113,7 @@ func (c *Client) doWithEndpoint(endpoint string, query string, variables map[str
} }
func (c *Client) Do(query string, variables map[string]any) (*GraphQLResponse, error) { func (c *Client) Do(query string, variables map[string]any) (*GraphQLResponse, error) {
return c.doWithEndpoint("/api/console/v1/query", query, variables) return c.doWithEndpoint("/api/console/v1/graphql", query, variables)
} }
func (c *Client) DoConnect(query string, variables map[string]any) (*GraphQLResponse, error) { func (c *Client) DoConnect(query string, variables map[string]any) (*GraphQLResponse, error) {
@@ -249,7 +249,7 @@ func (c *Client) executeMultipart(query string, variables map[string]any, files
} }
// Create request // Create request
req, err := http.NewRequest("POST", c.baseURL+"/api/console/v1/query", &buf) req, err := http.NewRequest("POST", c.baseURL+"/api/console/v1/graphql", &buf)
if err != nil { if err != nil {
return fmt.Errorf("cannot create request: %w", err) return fmt.Errorf("cannot create request: %w", err)
} }

View File

@@ -114,7 +114,7 @@ func waitForServer(ctx context.Context, baseURL string, timeout time.Duration) e
default: default:
} }
req, err := http.NewRequestWithContext(ctx, "GET", baseURL+"/api/console/v1/query", nil) req, err := http.NewRequestWithContext(ctx, "GET", baseURL+"/api/console/v1/graphql", nil)
if err != nil { if err != nil {
return err return err
} }

View File

@@ -2,7 +2,7 @@ import {
IAuthenticateGeneric, IAuthenticateGeneric,
ICredentialTestRequest, ICredentialTestRequest,
ICredentialType, ICredentialType,
Icon, Icon,
INodeProperties, INodeProperties,
} from 'n8n-workflow'; } from 'n8n-workflow';
@@ -11,12 +11,12 @@ export class ProboApi implements ICredentialType {
displayName = 'Probo API'; displayName = 'Probo API';
icon: Icon = { light: 'file:../icons/probo-light.svg', dark: 'file:../icons/probo.svg' }; icon: Icon = { light: 'file:../icons/probo-light.svg', dark: 'file:../icons/probo.svg' };
documentationUrl = 'https://www.getprobo.com/docs'; documentationUrl = 'https://www.getprobo.com/docs';
properties: INodeProperties[] = [ properties: INodeProperties[] = [
{ {
displayName: 'Probo Server', displayName: 'Probo Server',
name: 'server', name: 'server',
type: 'string', type: 'string',
@@ -30,9 +30,9 @@ export class ProboApi implements ICredentialType {
typeOptions: { password: true }, typeOptions: { password: true },
default: '', default: '',
}, },
]; ];
authenticate: IAuthenticateGeneric = { authenticate: IAuthenticateGeneric = {
type: 'generic', type: 'generic',
properties: { properties: {
headers: { headers: {
@@ -44,7 +44,7 @@ export class ProboApi implements ICredentialType {
test: ICredentialTestRequest = { test: ICredentialTestRequest = {
request: { request: {
baseURL: '={{$credentials?.server}}', baseURL: '={{$credentials?.server}}',
url: '/api/console/v1/query', url: '/api/console/v1/graphql',
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',

View File

@@ -21,7 +21,7 @@ export async function proboApiRequest(
const options: IHttpRequestOptions = { const options: IHttpRequestOptions = {
method: 'POST', method: 'POST',
baseURL: `${credentials.server}`, baseURL: `${credentials.server}`,
url: '/api/console/v1/query', url: '/api/console/v1/graphql',
headers: { headers: {
Authorization: `Bearer ${credentials.apiKey}`, Authorization: `Bearer ${credentials.apiKey}`,
'Content-Type': 'application/json', 'Content-Type': 'application/json',

View File

@@ -71,7 +71,7 @@ func NewMux(
graphqlHandler := NewGraphQLHandler(iamSvc, proboSvc, customDomainCname, logger) graphqlHandler := NewGraphQLHandler(iamSvc, proboSvc, customDomainCname, logger)
r.Handle("/query", graphqlHandler) r.Handle("/graphql", graphqlHandler)
r.Get( r.Get(
"/documents/signing-requests", "/documents/signing-requests",