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({
configName: "core",
network: Network.create(makeFetchQuery("/api/console/v1/query")),
network: Network.create(makeFetchQuery("/api/console/v1/graphql")),
store: new Store(new RecordSource(), {
queryCacheExpirationTime: 1 * 60 * 1000,
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) {
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) {
@@ -249,7 +249,7 @@ func (c *Client) executeMultipart(query string, variables map[string]any, files
}
// 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 {
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:
}
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 {
return err
}

View File

@@ -2,7 +2,7 @@ import {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
Icon,
Icon,
INodeProperties,
} from 'n8n-workflow';
@@ -11,12 +11,12 @@ export class ProboApi implements ICredentialType {
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';
properties: INodeProperties[] = [
{
properties: INodeProperties[] = [
{
displayName: 'Probo Server',
name: 'server',
type: 'string',
@@ -30,9 +30,9 @@ export class ProboApi implements ICredentialType {
typeOptions: { password: true },
default: '',
},
];
];
authenticate: IAuthenticateGeneric = {
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
@@ -44,7 +44,7 @@ export class ProboApi implements ICredentialType {
test: ICredentialTestRequest = {
request: {
baseURL: '={{$credentials?.server}}',
url: '/api/console/v1/query',
url: '/api/console/v1/graphql',
method: 'POST',
headers: {
'Content-Type': 'application/json',

View File

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

View File

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