Skip to content

🌿 Fern Regeneration -- May 6, 2025 #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
677 changes: 657 additions & 20 deletions .mock/definition/__package__.yml

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions .mock/definition/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ error-discrimination:
strategy: status-code
display-name: Data API
environments:
Default: https://api.webflow.com/v2
default-environment: Default
Data API:
urls:
Base: https://api.webflow.com/v2
Data API: https://api.webflow.com/v2
Content Delivery API: https://api-cdn.webflow.com/v2
Production: https://api.webflow.com/v2
CDN: https://api-cdn.webflow.com/v2
default-environment: Data API
default-url: Base
auth-schemes:
BearerToken:
scheme: bearer
Expand Down
25 changes: 21 additions & 4 deletions .mock/definition/collections/items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ service:
name: ItemsDeleteItemsRequest
body:
properties:
items: optional<list<ItemsDeleteItemsRequestItemsItem>>
items: list<ItemsDeleteItemsRequestItemsItem>
content-type: application/json
errors:
- root.BadRequestError
Expand All @@ -352,7 +352,9 @@ service:
examples:
- path-parameters:
collection_id: 580e63fc8c9a982ac9b8b745
request: {}
request:
items:
- id: 580e64008c9a982ac9b8b754
update-items:
path: /collections/{collection_id}/items
method: PATCH
Expand Down Expand Up @@ -568,6 +570,11 @@ service:
docs: |
List all published items in a collection.

<Note title="Serve data with the Content Delivery API">
To serve content to your other frontends applications, enterprise sites have access to a dedicated [content delivery API](/data/docs/cms-content-delivery), available at api-cdn.webflow.com.

</Note>

Required scope | `CMS:read`
source:
openapi: ../../../openapi/referenced-specs/v2.yml
Expand Down Expand Up @@ -610,6 +617,7 @@ service:
docs: Request was successful
type: root.CollectionItemList
status-code: 200
url: Data API
errors:
- root.BadRequestError
- root.UnauthorizedError
Expand Down Expand Up @@ -786,7 +794,7 @@ service:
name: ItemsDeleteItemsLiveRequest
body:
properties:
items: optional<list<ItemsDeleteItemsLiveRequestItemsItem>>
items: list<ItemsDeleteItemsLiveRequestItemsItem>
content-type: application/json
errors:
- root.BadRequestError
Expand All @@ -797,7 +805,9 @@ service:
examples:
- path-parameters:
collection_id: 580e63fc8c9a982ac9b8b745
request: {}
request:
items:
- id: 580e64008c9a982ac9b8b754
update-items-live:
path: /collections/{collection_id}/items/live
method: PATCH
Expand Down Expand Up @@ -1323,6 +1333,7 @@ service:
docs: Request was successful
type: root.CollectionItem
status-code: 200
url: Production
errors:
- root.BadRequestError
- root.UnauthorizedError
Expand Down Expand Up @@ -1452,6 +1463,11 @@ service:
docs: |
Get details of a selected Collection live Item.

<Note title="Serve data with the Content Delivery API">
To serve content to your other frontends applications, enterprise sites have access to a dedicated [content delivery API](/data/docs/cms-content-delivery), available at api-cdn.webflow.com.

</Note>

Required scope | `CMS:read`
source:
openapi: ../../../openapi/referenced-specs/v2.yml
Expand All @@ -1477,6 +1493,7 @@ service:
docs: Request was successful
type: root.CollectionItem
status-code: 200
url: Data API
errors:
- root.BadRequestError
- root.UnauthorizedError
Expand Down
58 changes: 31 additions & 27 deletions .mock/definition/components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ service:
auth: true
docs: >
Get static content from a component definition. This includes text
nodes, image nodes and nested component instances.
nodes, image nodes, select nodes, text input nodes, submit button nodes,
and nested component instances.

To retrieve dynamic content set by component properties, use the [get
component
Expand Down Expand Up @@ -125,8 +126,7 @@ service:
- root.TooManyRequestsError
- root.InternalServerError
examples:
- name: ComponentDOM
path-parameters:
- path-parameters:
site_id: 580e63e98c9a982ac9b8b741
component_id: 8505ba55-ef72-629e-f85c-33e4b703d48b
query-parameters:
Expand All @@ -151,43 +151,32 @@ service:
key: value
type: image
- id: id
componentId: componentId
propertyOverrides:
- propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
type: component-instance
pagination:
limit: 4
offset: 0
total: 4
- name: LocalizedComponentDOM
path-parameters:
site_id: 580e63e98c9a982ac9b8b741
component_id: 8505ba55-ef72-629e-f85c-33e4b703d48b
query-parameters:
localeId: 65427cf400e02b306eaa04a0
response:
body:
componentId: 69118560-d0bc-15fc-bbf8-b8fe5f6535b5
nodes:
placeholder: placeholder
attributes:
key: value
type: text-input
- id: id
image: {}
choices:
- value: value
text: text
attributes:
key: value
type: image
type: select
- id: id
text: {}
value: value
waitingText: waitingText
attributes:
key: value
type: text
type: submit-button
- id: id
componentId: componentId
propertyOverrides:
- propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
type: component-instance
pagination:
limit: 100
limit: 7
offset: 0
total: 3
total: 7
update-content:
path: /sites/{site_id}/components/{component_id}/dom
method: POST
Expand Down Expand Up @@ -268,6 +257,17 @@ service:
text: >-
<div><h3>Don't Panic!</h3><p>Always know where your towel
is.</p></div>
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad635
choices:
- value: choice-1
text: First choice
- value: choice-2
text: Second choice
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad642
placeholder: Enter something here...
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad671
value: Submit
waitingText: Submitting...
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad629
propertyOverrides:
- propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
Expand Down Expand Up @@ -437,6 +437,10 @@ types:
union:
- root.TextNodeWrite
- root.ComponentInstanceNodePropertyOverridesWrite
- root.SelectNodeWrite
- root.TextInputNodeWrite
- root.SubmitButtonNodeWrite
- root.SearchButtonNodeWrite
source:
openapi: ../../../openapi/referenced-specs/v2.yml
inline: true
Expand Down
38 changes: 35 additions & 3 deletions .mock/definition/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ service:
auth: true
docs: >
Get content from a static page. This includes text nodes, image nodes,
and component instances with [property
select nodes, text input nodes, submit button nodes, and component
instances with [property
overrides](https://help.webflow.com/hc/en-us/articles/33961219350547-Component-properties#how-to-modify-property-values-on-component-instances).


Expand Down Expand Up @@ -327,8 +328,7 @@ service:
- root.TooManyRequestsError
- root.InternalServerError
examples:
- name: PageDOM
path-parameters:
- path-parameters:
page_id: 63c720f9347c2139b248e552
query-parameters:
localeId: 65427cf400e02b306eaa04a0
Expand All @@ -351,6 +351,23 @@ service:
attributes:
key: value
type: image
- id: id
choices:
- value: value
text: text
attributes:
key: value
type: select
- id: id
placeholder: placeholder
attributes:
key: value
type: text-input
- id: id
text: {}
attributes:
key: value
type: text
- id: id
componentId: componentId
propertyOverrides:
Expand Down Expand Up @@ -433,6 +450,17 @@ service:
text: >-
<div><h3>Don't Panic!</h3><p>Always know where your towel
is.</p></div>
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad635
choices:
- value: choice-1
text: First choice
- value: choice-2
text: Second choice
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad642
placeholder: Enter something here...
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad671
value: Submit
waitingText: Submitting...
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad629
propertyOverrides:
- propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
Expand All @@ -453,6 +481,10 @@ types:
union:
- root.TextNodeWrite
- root.ComponentInstanceNodePropertyOverridesWrite
- root.SelectNodeWrite
- root.TextInputNodeWrite
- root.SubmitButtonNodeWrite
- root.SearchButtonNodeWrite
source:
openapi: ../../../openapi/referenced-specs/v2.yml
inline: true
Expand Down
Loading
Loading