Skip to content
Open
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
3 changes: 3 additions & 0 deletions .mock/definition/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ service:
width: 500
height: 900
quality: 100
error: error
altText: A single candy wrapper
delete:
path: /assets/{asset_id}
Expand Down Expand Up @@ -335,6 +336,7 @@ service:
width: 500
height: 900
quality: 100
error: error
altText: A single candy wrapper
list-folders:
path: /sites/{site_id}/asset_folders
Expand Down Expand Up @@ -371,6 +373,7 @@ service:
assetFolders:
- id: 6390c49774a71f0e3c1a08ee
displayName: emoji icons
parentFolder: 6390c49774a71f99f21a08eb
assets:
- 63e5889e7fe4eafa7384cea4
- 659595234426a9fcbad57043
Expand Down
3 changes: 3 additions & 0 deletions .mock/definition/collections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,18 +303,21 @@ service:
type: File
slug: guide-file
displayName: Guide File
helpText: helpText
- id: 7f8e9d0c1b2a3f4e5d6c8b9e
isRequired: false
isEditable: true
type: Email
slug: contributor-email
displayName: Contributor Email
helpText: helpText
- id: 3a4f5e6d7c8b9a0e1d2c4b5f
isRequired: false
isEditable: true
type: Phone
slug: emergency-contact
displayName: Emergency Contact
helpText: helpText
delete:
path: /collections/{collection_id}
method: DELETE
Expand Down
1 change: 1 addition & 0 deletions .mock/definition/comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ webhooks:
siteId: 679826b3b20b045e176bc4b5
pageId: 679826b3b20b045e176bc4bc
localeId: 67993753d910db250db64b3e
itemId: 580e64008c9a982ac9b8b754
breakpoint: main
url: >-
https://webflow.com/design/site-slug-4ec832?workflow=comment&commentId=679d2ddb5196117ad04d1ffa&pageId=679826b3b20b045e176bc4bc
Expand Down
4 changes: 4 additions & 0 deletions .mock/definition/components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@ service:
readonly: true
- id: 6258612d1ee792848f805dcf
name: Card
group: Buttons
description: A button component that can be used across the site
readonly: true
- id: 68a2b1d1ee792848f805dcf
name: Nav
group: Buttons
description: A button component that can be used across the site
readonly: true
pagination:
limit: 20
Expand Down
213 changes: 213 additions & 0 deletions .mock/definition/forms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,16 @@ service:
fields:
'0':
displayName: Email
placeholder: Enter your email
userVisible: true
'1':
displayName: Email
placeholder: Enter your email
userVisible: true
responseSettings:
redirectUrl: https://example.com
redirectMethod: GET
redirectAction: POST https://example.com
sendEmailConfirmation: true
id: 589a331aa51e760df7ccb89e
siteId: 580e63e98c9a982ac9b8b741
Expand All @@ -80,10 +83,12 @@ service:
fields:
'0':
displayName: Email
placeholder: Enter your email
userVisible: true
responseSettings:
redirectUrl: https://example.com
redirectMethod: GET
redirectAction: POST https://example.com
sendEmailConfirmation: false
id: 580ff8d7ba3e45ba9fe588e9
siteId: 580e63e98c9a982ac9b8b741
Expand Down Expand Up @@ -136,6 +141,7 @@ service:
660d5bcc9c0772150459dfb1:
displayName: Name
type: Plain
placeholder: Enter your email
userVisible: true
589a331aa51e760df7ccb89d:
displayName: Email
Expand All @@ -145,6 +151,7 @@ service:
responseSettings:
redirectUrl: https://example.com
redirectMethod: GET
redirectAction: POST https://example.com
sendEmailConfirmation: true
id: 589a331aa51e760df7ccb89e
siteId: 580e63e98c9a982ac9b8b741
Expand Down Expand Up @@ -430,6 +437,212 @@ service:
limit: 25
offset: 0
total: 2
list-submissions-by-form-and-site:
path: /sites/{site_id}/forms/{form_id}/submissions
method: GET
auth:
- OAuth2:
- forms:read
docs: |
List form submissions for a given form within a specific site.

Required scope | `forms:read`
source:
openapi: ../../../openapi/referenced-specs/v2.yml
path-parameters:
site_id:
type: string
docs: Unique identifier for a Site
form_id:
type: string
docs: Unique identifier for a Form
display-name: List Form Submissions by Form and Site
request:
name: FormsListSubmissionsByFormAndSiteRequest
query-parameters:
offset:
type: optional<double>
docs: >-
Offset used for pagination if the results have more than limit
records
limit:
type: optional<double>
docs: 'Maximum number of records to be returned (max limit: 100)'
response:
docs: Request was successful
type: root.FormSubmissionList
status-code: 200
errors:
- root.BadRequestError
- root.UnauthorizedError
- root.ForbiddenError
- root.NotFoundError
- root.TooManyRequestsError
- root.InternalServerError
examples:
- path-parameters:
site_id: 580e63e98c9a982ac9b8b741
form_id: 580e63e98c9a982ac9b8b741
query-parameters:
offset: 1.1
limit: 1.1
response:
body:
formSubmissions:
- id: 6321ca84df3949bfc6752327
displayName: Sample Form
siteId: 62749158efef318abc8d5a0f
workspaceId: 62749158efef318abc8d5a0f
dateSubmitted: '2022-09-14T12:35:16Z'
formResponse:
First Name: Arthur
Last Name: Dent
- id: 660d64fabf6e0a0d4edab981
displayName: Sample Form
siteId: 62749158efef318abc8d5a0f
workspaceId: 62749158efef318abc8d5a0f
dateSubmitted: '2022-09-14T12:35:16Z'
formResponse:
First Name: Ford
Last Name: Prefect
pagination:
limit: 25
offset: 0
total: 2
get-submission-by-site:
path: /sites/{site_id}/form_submissions/{form_submission_id}
method: GET
auth:
- OAuth2:
- forms:read
docs: |
Get information about a form submission within a specific site.

Required scope | `forms:read`
source:
openapi: ../../../openapi/referenced-specs/v2.yml
path-parameters:
site_id:
type: string
docs: Unique identifier for a Site
form_submission_id:
type: string
docs: Unique identifier for a Form Submission
display-name: Get Form Submission by Site
response:
docs: Request was successful
type: root.FormSubmission
status-code: 200
errors:
- root.BadRequestError
- root.UnauthorizedError
- root.ForbiddenError
- root.NotFoundError
- root.TooManyRequestsError
- root.InternalServerError
examples:
- path-parameters:
site_id: 580e63e98c9a982ac9b8b741
form_submission_id: 580e63e98c9a982ac9b8b741
response:
body:
id: 6321ca84df3949bfc6752327
displayName: Sample Form
siteId: 62749158efef318abc8d5a0f
workspaceId: 62749158efef318abc8d5a0f
dateSubmitted: '2022-09-14T12:35:16Z'
formResponse:
First Name: Arthur
Last Name: Dent
delete-submission-by-site:
path: /sites/{site_id}/form_submissions/{form_submission_id}
method: DELETE
auth:
- OAuth2:
- forms:write
docs: |
Delete a form submission within a specific site.

Required scope | `forms:write`
source:
openapi: ../../../openapi/referenced-specs/v2.yml
path-parameters:
site_id:
type: string
docs: Unique identifier for a Site
form_submission_id:
type: string
docs: Unique identifier for a Form Submission
display-name: Delete Form Submission by Site
errors:
- root.BadRequestError
- root.UnauthorizedError
- root.ForbiddenError
- root.NotFoundError
- root.ConflictError
- root.TooManyRequestsError
- root.InternalServerError
examples:
- path-parameters:
site_id: 580e63e98c9a982ac9b8b741
form_submission_id: 580e63e98c9a982ac9b8b741
update-submission-by-site:
path: /sites/{site_id}/form_submissions/{form_submission_id}
method: PATCH
auth:
- OAuth2:
- forms:write
docs: |
Update hidden fields on a form submission within a specific site.

Required scope | `forms:write`
source:
openapi: ../../../openapi/referenced-specs/v2.yml
path-parameters:
site_id:
type: string
docs: Unique identifier for a Site
form_submission_id:
type: string
docs: Unique identifier for a Form Submission
display-name: Modify Form Submission by Site
request:
name: FormsUpdateSubmissionBySiteRequest
body:
properties:
formSubmissionData:
type: optional<map<string, unknown>>
docs: >-
An existing **hidden field** defined on the form schema, and the
corresponding value to set
content-type: application/json
response:
docs: Request was successful
type: root.FormSubmission
status-code: 200
errors:
- root.BadRequestError
- root.UnauthorizedError
- root.ForbiddenError
- root.NotFoundError
- root.ConflictError
- root.TooManyRequestsError
- root.InternalServerError
examples:
- path-parameters:
site_id: 580e63e98c9a982ac9b8b741
form_submission_id: 580e63e98c9a982ac9b8b741
request: {}
response:
body:
id: 6321ca84df3949bfc6752327
displayName: Sample Form
siteId: 62749158efef318abc8d5a0f
workspaceId: 62749158efef318abc8d5a0f
dateSubmitted: '2022-09-14T12:35:16Z'
formResponse:
First Name: Arthur
Last Name: Dent
source:
openapi: ../../../openapi/referenced-specs/v2.yml
display-name: Forms
Expand Down
1 change: 1 addition & 0 deletions .mock/definition/items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ webhooks:
siteId: 65427cf400e02b306eaa049c
workspaceId: 625860a7a6c16d624927122f
collectionId: 664243617fcc8b464b23c4ee
cmsLocaleId: 681442a144bb80bd00480fda
docs: Information about a collection item that was published
collection_item_unpublished:
audiences: []
Expand Down
Loading
Loading