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
372 changes: 112 additions & 260 deletions .mock/definition/__package__.yml

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion .mock/definition/accessGroups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ service:
list:
path: /sites/{site_id}/accessgroups
method: GET
auth: true
auth:
- OAuth2:
- users:read
docs: |
Get a list of access groups for a site

Expand Down Expand Up @@ -60,6 +62,10 @@ service:
examples:
- path-parameters:
site_id: 580e63e98c9a982ac9b8b741
query-parameters:
offset: 1.1
limit: 1.1
sort: CreatedOn
response:
body:
count: 1
Expand Down
2 changes: 0 additions & 2 deletions .mock/definition/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ environments:
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:
Expand Down
46 changes: 38 additions & 8 deletions .mock/definition/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ service:
list:
path: /sites/{site_id}/assets
method: GET
auth: true
auth:
- OAuth2:
- assets:read
docs: |
List of assets uploaded to a site

Expand All @@ -19,6 +21,17 @@ service:
type: string
docs: Unique identifier for a Site
display-name: List Assets
request:
name: AssetsListRequest
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.Assets
Expand All @@ -32,6 +45,9 @@ service:
examples:
- path-parameters:
site_id: 580e63e98c9a982ac9b8b741
query-parameters:
offset: 1.1
limit: 1.1
response:
body:
assets:
Expand Down Expand Up @@ -86,7 +102,9 @@ service:
create:
path: /sites/{site_id}/assets
method: POST
auth: true
auth:
- OAuth2:
- assets:write
docs: >
The first step in uploading an asset to a site.

Expand Down Expand Up @@ -175,7 +193,9 @@ service:
get:
path: /assets/{asset_id}
method: GET
auth: true
auth:
- OAuth2:
- assets:read
docs: |
Get details about an asset

Expand Down Expand Up @@ -226,7 +246,9 @@ service:
delete:
path: /assets/{asset_id}
method: DELETE
auth: true
auth:
- OAuth2:
- assets:write
docs: |
Delete an Asset

Expand All @@ -250,7 +272,9 @@ service:
update:
path: /assets/{asset_id}
method: PATCH
auth: true
auth:
- OAuth2:
- assets:write
docs: |
Update details of an Asset.

Expand Down Expand Up @@ -315,7 +339,9 @@ service:
list-folders:
path: /sites/{site_id}/asset_folders
method: GET
auth: true
auth:
- OAuth2:
- assets:read
docs: |
List Asset Folders within a given site

Expand Down Expand Up @@ -358,7 +384,9 @@ service:
create-folder:
path: /sites/{site_id}/asset_folders
method: POST
auth: true
auth:
- OAuth2:
- assets:write
docs: |
Create an Asset Folder within a given site

Expand Down Expand Up @@ -412,7 +440,9 @@ service:
get-folder:
path: /asset_folders/{asset_folder_id}
method: GET
auth: true
auth:
- OAuth2:
- assets:read
docs: |
Get details about a specific Asset Folder

Expand Down
16 changes: 12 additions & 4 deletions .mock/definition/collections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ service:
list:
path: /sites/{site_id}/collections
method: GET
auth: true
auth:
- OAuth2:
- cms:read
docs: |
List of all Collections within a Site.

Expand Down Expand Up @@ -56,7 +58,9 @@ service:
create:
path: /sites/{site_id}/collections
method: POST
auth: true
auth:
- OAuth2:
- cms:write
docs: >
Create a Collection for a site with collection fields.

Expand Down Expand Up @@ -159,7 +163,9 @@ service:
get:
path: /collections/{collection_id}
method: GET
auth: true
auth:
- OAuth2:
- cms:read
docs: |
Get the full details of a collection from its ID.

Expand Down Expand Up @@ -312,7 +318,9 @@ service:
delete:
path: /collections/{collection_id}
method: DELETE
auth: true
auth:
- OAuth2:
- cms:write
docs: |
Delete a collection using its ID.

Expand Down
12 changes: 9 additions & 3 deletions .mock/definition/collections/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ service:
create:
path: /collections/{collection_id}/fields
method: POST
auth: true
auth:
- OAuth2:
- cms:write
docs: >
Create a custom field in a collection.

Expand Down Expand Up @@ -114,7 +116,9 @@ service:
delete:
path: /collections/{collection_id}/fields/{field_id}
method: DELETE
auth: true
auth:
- OAuth2:
- cms:write
docs: >
Delete a custom field in a collection. This endpoint does not currently
support bulk deletion.
Expand Down Expand Up @@ -144,7 +148,9 @@ service:
update:
path: /collections/{collection_id}/fields/{field_id}
method: PATCH
auth: true
auth:
- OAuth2:
- cms:write
docs: |
Update a custom field in a collection.

Expand Down
Loading
Loading