Skip to content

Commit 07836da

Browse files
committed
Resolves #458 - Add support for more resources
1 parent 46b9260 commit 07836da

File tree

1 file changed

+146
-0
lines changed

1 file changed

+146
-0
lines changed

external/resources/yaml/resources.yaml

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,3 +2418,149 @@ stores:
24182418
get-entity:
24192419
docs: "https://elasticpath.dev/docs/getting-started/api-reference"
24202420
url: "/v2/stores/{settings}"
2421+
custom-apis:
2422+
singular-name: custom-api
2423+
json-api-type: custom_api
2424+
json-api-format: "legacy"
2425+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/custom-ap-is"
2426+
delete-entity:
2427+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/delete-a-custom-api"
2428+
url: "/v2/settings/extensions/custom-apis/{custom_apis}"
2429+
create-entity:
2430+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/create-a-custom-api"
2431+
url: "/v2/settings/extensions/custom-apis/"
2432+
update-entity:
2433+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/update-a-custom-api"
2434+
url: "/v2/settings/extensions/custom-apis/{custom_apis}"
2435+
get-entity:
2436+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-a-custom-api"
2437+
url: "/v2/settings/extensions/custom-apis/{custom_apis}"
2438+
get-collection:
2439+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-all-custom-apis"
2440+
url: "/v2/settings/extensions/custom-apis"
2441+
attributes:
2442+
name:
2443+
type: STRING
2444+
autofill: FUNC:Company
2445+
slug:
2446+
type: STRING
2447+
api_type:
2448+
type: STRING
2449+
description:
2450+
type: STRING
2451+
autofill: FUNC:Phrase
2452+
relationships.parent_apis[n].type:
2453+
type: ENUM:api_location,custom_api
2454+
relationships.parent_apis[n].id:
2455+
type: RESOURCE_ID:custom-apis
2456+
custom-fields:
2457+
singular-name: custom-field
2458+
json-api-type: custom_field
2459+
json-api-format: "legacy"
2460+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/custom-fields"
2461+
delete-entity:
2462+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/delete-a-custom-field"
2463+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields/{custom_fields}"
2464+
create-entity:
2465+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/create-a-custom-field"
2466+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields"
2467+
update-entity:
2468+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/update-a-custom-field"
2469+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields/{custom_fields}"
2470+
get-entity:
2471+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-a-custom-field"
2472+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields/{custom_fields}"
2473+
get-collection:
2474+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-all-custom-fields"
2475+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/fields/"
2476+
attributes:
2477+
name:
2478+
type: STRING
2479+
autofill: FUNC:Company
2480+
slug:
2481+
type: STRING
2482+
field_type:
2483+
type: ENUM:string,integer,boolean,float
2484+
description:
2485+
type: STRING
2486+
autofill: FUNC:Phrase
2487+
validation.string.min_length:
2488+
type: INT
2489+
validation.string.max_length:
2490+
type: INT
2491+
validation.string.regex:
2492+
type: STRING
2493+
validation.string.allow_null_values:
2494+
type: BOOL
2495+
validation.string.unique:
2496+
type: ENUM:yes,no
2497+
validation.integer.min_value:
2498+
type: INT
2499+
validation.integer.max_value:
2500+
type: INT
2501+
validation.integer.allow_null_values:
2502+
type: BOOL
2503+
validation.boolean.allow_null_values:
2504+
type: BOOL
2505+
custom-api-settings-entries:
2506+
singular-name: custom-api-settings-entry
2507+
json-api-type: custom_entry
2508+
json-api-format: "legacy"
2509+
no-wrapping: true
2510+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/custom-api-entries"
2511+
delete-entity:
2512+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/delete-a-custom-entry"
2513+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries/{custom_api_setting_entries}"
2514+
create-entity:
2515+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/create-a-custom-entry"
2516+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries"
2517+
update-entity:
2518+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/update-a-custom-entry"
2519+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries/{custom_api_setting_entries}"
2520+
get-entity:
2521+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-a-custom-entry"
2522+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries/{custom_api_setting_entries}"
2523+
get-collection:
2524+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-all-custom-entries"
2525+
url: "/v2/settings/extensions/custom-apis/{custom_apis}/entries/"
2526+
attributes:
2527+
data.type:
2528+
type: STRING
2529+
^data\.(.+)$:
2530+
type: STRING
2531+
custom-api-extension-entries:
2532+
singular-name: custom-api-extension-entry
2533+
json-api-type: custom_entry
2534+
json-api-format: "legacy"
2535+
no-wrapping: true
2536+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/custom-api-entries"
2537+
delete-entity:
2538+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/delete-a-custom-entry"
2539+
url: "/v2/extensions/custom-apis/{custom_apis}/entries/{custom_api_extension_entries}"
2540+
parent_resource_value_overrides:
2541+
custom_apis: slug
2542+
create-entity:
2543+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/create-a-custom-entry"
2544+
url: "/v2/extensions/custom-apis/{custom_apis}/entries"
2545+
parent_resource_value_overrides:
2546+
custom_apis: slug
2547+
update-entity:
2548+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/update-a-custom-entry"
2549+
url: "/v2/extensions/custom-apis/{custom_apis}/entries/{custom_api_extension_entries}"
2550+
parent_resource_value_overrides:
2551+
custom_apis: slug
2552+
get-entity:
2553+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-a-custom-entry"
2554+
url: "/v2/extensions/custom-apis/{custom_apis}/entries/{custom_api_extension_entries}"
2555+
parent_resource_value_overrides:
2556+
custom_apis: slug
2557+
get-collection:
2558+
docs: "https://elasticpath.dev/docs/api/commerce-extensions/get-all-custom-entries"
2559+
url: "/v2/extensions/custom-apis/{custom_apis}/entries/"
2560+
parent_resource_value_overrides:
2561+
custom_apis: slug
2562+
attributes:
2563+
data.type:
2564+
type: STRING
2565+
^data\.(.+)$:
2566+
type: STRING

0 commit comments

Comments
 (0)