Skip to content

Commit

Permalink
regen: removes auth for public routes
Browse files Browse the repository at this point in the history
generated at ST commit head [5567bf30a65ed3a852244bb191e419fa542cb796](SpaceTradersAPI/api-docs@5567bf3)
  • Loading branch information
jonchurch committed May 29, 2023
1 parent ae5adbc commit 9129612
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 64 deletions.
16 changes: 0 additions & 16 deletions src/apis/DefaultApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ export class DefaultApi extends runtime.BaseAPI {

const headerParameters: runtime.HTTPHeaders = {};

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("AgentToken", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/`,
method: 'GET',
Expand Down Expand Up @@ -84,14 +76,6 @@ export class DefaultApi extends runtime.BaseAPI {

headerParameters['Content-Type'] = 'application/json';

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("AgentToken", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/register`,
method: 'POST',
Expand Down
48 changes: 0 additions & 48 deletions src/apis/SystemsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,6 @@ export class SystemsApi extends runtime.BaseAPI {

const headerParameters: runtime.HTTPHeaders = {};

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("AgentToken", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/systems/{systemSymbol}/waypoints/{waypointSymbol}/jump-gate`.replace(`{${"systemSymbol"}}`, encodeURIComponent(String(requestParameters.systemSymbol))).replace(`{${"waypointSymbol"}}`, encodeURIComponent(String(requestParameters.waypointSymbol))),
method: 'GET',
Expand Down Expand Up @@ -141,14 +133,6 @@ export class SystemsApi extends runtime.BaseAPI {

const headerParameters: runtime.HTTPHeaders = {};

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("AgentToken", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/systems/{systemSymbol}/waypoints/{waypointSymbol}/market`.replace(`{${"systemSymbol"}}`, encodeURIComponent(String(requestParameters.systemSymbol))).replace(`{${"waypointSymbol"}}`, encodeURIComponent(String(requestParameters.waypointSymbol))),
method: 'GET',
Expand Down Expand Up @@ -185,14 +169,6 @@ export class SystemsApi extends runtime.BaseAPI {

const headerParameters: runtime.HTTPHeaders = {};

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("AgentToken", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/systems/{systemSymbol}/waypoints/{waypointSymbol}/shipyard`.replace(`{${"systemSymbol"}}`, encodeURIComponent(String(requestParameters.systemSymbol))).replace(`{${"waypointSymbol"}}`, encodeURIComponent(String(requestParameters.waypointSymbol))),
method: 'GET',
Expand Down Expand Up @@ -225,14 +201,6 @@ export class SystemsApi extends runtime.BaseAPI {

const headerParameters: runtime.HTTPHeaders = {};

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("AgentToken", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/systems/{systemSymbol}`.replace(`{${"systemSymbol"}}`, encodeURIComponent(String(requestParameters.systemSymbol))),
method: 'GET',
Expand Down Expand Up @@ -317,14 +285,6 @@ export class SystemsApi extends runtime.BaseAPI {

const headerParameters: runtime.HTTPHeaders = {};

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("AgentToken", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/systems`,
method: 'GET',
Expand Down Expand Up @@ -361,14 +321,6 @@ export class SystemsApi extends runtime.BaseAPI {

const headerParameters: runtime.HTTPHeaders = {};

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("AgentToken", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const response = await this.request({
path: `/systems/{systemSymbol}/waypoints/{waypointSymbol}`.replace(`{${"systemSymbol"}}`, encodeURIComponent(String(requestParameters.systemSymbol))).replace(`{${"waypointSymbol"}}`, encodeURIComponent(String(requestParameters.waypointSymbol))),
method: 'GET',
Expand Down

0 comments on commit 9129612

Please sign in to comment.