Skip to content

Commit

Permalink
Remove the sandbox test app (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkachel authored Jan 23, 2025
1 parent 5f679ff commit d52d9fb
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 446 deletions.
276 changes: 0 additions & 276 deletions frontends/api/src/generated/v0/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2259,37 +2259,6 @@ export interface ProductRequest {
*/
details_url?: string
}
/**
*
* @export
* @interface SandboxValues
*/
export interface SandboxValues {
/**
*
* @type {number}
* @memberof SandboxValues
*/
id: number
/**
*
* @type {string}
* @memberof SandboxValues
*/
name: string
/**
*
* @type {number}
* @memberof SandboxValues
*/
age: number
/**
*
* @type {string}
* @memberof SandboxValues
*/
email: string
}
/**
* Simpler serializer for discounts.
* @export
Expand Down Expand Up @@ -6717,251 +6686,6 @@ export class PaymentsApi extends BaseAPI {
}
}

/**
* SandboxApi - axios parameter creator
* @export
*/
export const SandboxApiAxiosParamCreator = function (
configuration?: Configuration,
) {
return {
/**
* Retrieves the list of sandbox values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
sandboxZenApiList: async (
options: RawAxiosRequestConfig = {},
): Promise<RequestArgs> => {
const localVarPath = `/api/v0/sandbox/zen/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}

const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
}
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any

setSearchParams(localVarUrlObj, localVarQueryParameter)
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
}

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
* Retrieves a single sandbox value.
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
sandboxZenApiRetrieve: async (
id: number,
options: RawAxiosRequestConfig = {},
): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("sandboxZenApiRetrieve", "id", id)
const localVarPath = `/api/v0/sandbox/zen/{id}/`.replace(
`{${"id"}}`,
encodeURIComponent(String(id)),
)
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}

const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
}
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any

setSearchParams(localVarUrlObj, localVarQueryParameter)
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
}

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
}
}

/**
* SandboxApi - functional programming interface
* @export
*/
export const SandboxApiFp = function (configuration?: Configuration) {
const localVarAxiosParamCreator = SandboxApiAxiosParamCreator(configuration)
return {
/**
* Retrieves the list of sandbox values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async sandboxZenApiList(
options?: RawAxiosRequestConfig,
): Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => AxiosPromise<Array<SandboxValues>>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.sandboxZenApiList(options)
const index = configuration?.serverIndex ?? 0
const operationBasePath =
operationServerMap["SandboxApi.sandboxZenApiList"]?.[index]?.url
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration,
)(axios, operationBasePath || basePath)
},
/**
* Retrieves a single sandbox value.
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async sandboxZenApiRetrieve(
id: number,
options?: RawAxiosRequestConfig,
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SandboxValues>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.sandboxZenApiRetrieve(id, options)
const index = configuration?.serverIndex ?? 0
const operationBasePath =
operationServerMap["SandboxApi.sandboxZenApiRetrieve"]?.[index]?.url
return (axios, basePath) =>
createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration,
)(axios, operationBasePath || basePath)
},
}
}

/**
* SandboxApi - factory interface
* @export
*/
export const SandboxApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance,
) {
const localVarFp = SandboxApiFp(configuration)
return {
/**
* Retrieves the list of sandbox values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
sandboxZenApiList(
options?: RawAxiosRequestConfig,
): AxiosPromise<Array<SandboxValues>> {
return localVarFp
.sandboxZenApiList(options)
.then((request) => request(axios, basePath))
},
/**
* Retrieves a single sandbox value.
* @param {SandboxApiSandboxZenApiRetrieveRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
sandboxZenApiRetrieve(
requestParameters: SandboxApiSandboxZenApiRetrieveRequest,
options?: RawAxiosRequestConfig,
): AxiosPromise<SandboxValues> {
return localVarFp
.sandboxZenApiRetrieve(requestParameters.id, options)
.then((request) => request(axios, basePath))
},
}
}

/**
* Request parameters for sandboxZenApiRetrieve operation in SandboxApi.
* @export
* @interface SandboxApiSandboxZenApiRetrieveRequest
*/
export interface SandboxApiSandboxZenApiRetrieveRequest {
/**
*
* @type {number}
* @memberof SandboxApiSandboxZenApiRetrieve
*/
readonly id: number
}

/**
* SandboxApi - object-oriented interface
* @export
* @class SandboxApi
* @extends {BaseAPI}
*/
export class SandboxApi extends BaseAPI {
/**
* Retrieves the list of sandbox values.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SandboxApi
*/
public sandboxZenApiList(options?: RawAxiosRequestConfig) {
return SandboxApiFp(this.configuration)
.sandboxZenApiList(options)
.then((request) => request(this.axios, this.basePath))
}

/**
* Retrieves a single sandbox value.
* @param {SandboxApiSandboxZenApiRetrieveRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SandboxApi
*/
public sandboxZenApiRetrieve(
requestParameters: SandboxApiSandboxZenApiRetrieveRequest,
options?: RawAxiosRequestConfig,
) {
return SandboxApiFp(this.configuration)
.sandboxZenApiRetrieve(requestParameters.id, options)
.then((request) => request(this.axios, this.basePath))
}
}

/**
* UsersApi - axios parameter creator
* @export
Expand Down
50 changes: 0 additions & 50 deletions openapi/specs/v0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -750,40 +750,6 @@ paths:
schema:
$ref: "#/components/schemas/OrderHistory"
description: ""
/api/v0/sandbox/zen/:
get:
operationId: sandbox_zen_api_list
description: Retrieves the list of sandbox values.
tags:
- sandbox
responses:
"200":
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/sandbox_values"
description: ""
/api/v0/sandbox/zen/{id}/:
get:
operationId: sandbox_zen_api_retrieve
description: Retrieves a single sandbox value.
parameters:
- in: path
name: id
schema:
type: integer
required: true
tags:
- sandbox
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/sandbox_values"
description: ""
/api/v0/users/me/:
get:
operationId: users_me_retrieve
Expand Down Expand Up @@ -2312,19 +2278,3 @@ components:
required:
- id
- username
sandbox_values:
type: object
properties:
id:
type: integer
name:
type: string
age:
type: integer
email:
type: string
required:
- age
- email
- id
- name
Empty file removed sandbox/__init__.py
Empty file.
8 changes: 0 additions & 8 deletions sandbox/apps.py

This file was deleted.

21 changes: 0 additions & 21 deletions sandbox/urls.py

This file was deleted.

Loading

0 comments on commit d52d9fb

Please sign in to comment.