Skip to content

Commit

Permalink
v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zeplin-dev committed Oct 26, 2021
1 parent a4f1c0e commit c90fba1
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 22 deletions.
93 changes: 87 additions & 6 deletions descriptions/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Zeplin API",
"description": "Access your resources in Zeplin",
"version": "1.6.1",
"version": "1.7.0",
"contact": {
"name": "Zeplin",
"url": "https://zeplin.io",
Expand Down Expand Up @@ -783,6 +783,9 @@
},
{
"$ref": "#/components/parameters/offset"
},
{
"$ref": "#/components/parameters/handle"
}
],
"responses": {
Expand All @@ -809,17 +812,22 @@
}
},
"403": {
"description": "User is restricted response",
"description": "User is restricted or not allowed response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"examples": {
"response": {
"User is restricted response": {
"value": {
"message": "User is restricted"
}
},
"User is not allowed response": {
"value": {
"message": "Only organization admins (or higher) can filter organizaton members via email using their personal access tokens"
}
}
}
}
Expand Down Expand Up @@ -1912,6 +1920,66 @@
}
}
},
"/v1/projects/{project_id}/screens/{screen_id}/components": {
"get": {
"tags": [
"Screens"
],
"summary": "Get screen components",
"description": "List all components in the screen",
"operationId": "GetScreenComponents",
"parameters": [
{
"$ref": "#/components/parameters/project_id"
},
{
"$ref": "#/components/parameters/screen_id"
},
{
"$ref": "#/components/parameters/limit"
},
{
"$ref": "#/components/parameters/offset"
},
{
"$ref": "#/components/parameters/include_latest_version"
},
{
"$ref": "#/components/parameters/include_linked_styleguides"
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Component"
}
},
"examples": {
"response": {
"value": [
{
"$ref": "#/components/examples/component/value"
}
]
}
}
}
}
},
"404": {
"$ref": "#/components/responses/projectOrScreenNotFound"
},
"422": {
"$ref": "#/components/responses/projectArchived"
}
}
}
},
"/v1/projects/{project_id}/screens/{screen_id}/notes": {
"get": {
"tags": [
Expand Down Expand Up @@ -5208,7 +5276,7 @@
{
"name": "id",
"in": "query",
"description": "Filter by id\n\n**Note:** Please prefer multiple parameter instances over comma-separated values.\n\nExample: `?id=5fbe387f8c72ef23659fb500&id=602281f4783f72fccc045484`\n",
"description": "Filter by id\n\nExample: `?id=5fbe387f8c72ef23659fb500&id=602281f4783f72fccc045484`\n",
"required": false,
"schema": {
"type": "array",
Expand Down Expand Up @@ -16354,7 +16422,7 @@
"organization_role": {
"name": "role",
"in": "query",
"description": "Filter by role\n\n☝️Note that the Developer role maps to `member` and the Reviewer role maps to `alien` in the API.\n\n**Note:** Please prefer multiple parameter instances over comma-separated values.\n\nExample: `?role=owner&role=admin`\n",
"description": "Filter by role\n\n☝️Note that the Developer role maps to `member` and the Reviewer role maps to `alien` in the API.\n\nExample: `?role=owner&role=admin`\n",
"required": false,
"schema": {
"type": "array",
Expand Down Expand Up @@ -16383,7 +16451,7 @@
"notification_type": {
"name": "type",
"in": "query",
"description": "Filter by type\n\n**Note:** Please prefer multiple parameter instances over comma-separated values.\n\nExample: `?type=project.extension&type=styleguide.extension`\n",
"description": "Filter by type\n\nExample: `?type=project.extension&type=styleguide.extension`\n",
"required": false,
"schema": {
"type": "array",
Expand Down Expand Up @@ -16440,6 +16508,19 @@
"type": "boolean",
"default": false
}
},
"handle": {
"name": "handle",
"in": "query",
"description": "Filter organization members by email, username or unique identifier of the user\n\n☝️Note that only organization admins (or higher) can filter members using email addresses.\n\nExample: `?handle=zozo&handle=5d9caaecb4a3fa9bc9718686&handle=zozo%40zeplin.io`\n",
"required": false,
"schema": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
}
}
},
"responses": {
Expand Down
75 changes: 59 additions & 16 deletions descriptions/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.2
info:
title: Zeplin API
description: Access your resources in Zeplin
version: 1.6.1
version: 1.7.0
contact:
name: Zeplin
url: https://zeplin.io
Expand Down Expand Up @@ -485,6 +485,7 @@ paths:
- $ref: "#/components/parameters/organization_id"
- $ref: "#/components/parameters/limit"
- $ref: "#/components/parameters/offset"
- $ref: "#/components/parameters/handle"
responses:
"200":
description: Successful response
Expand All @@ -499,15 +500,19 @@ paths:
value:
- $ref: "#/components/examples/organizationMember/value"
"403":
description: User is restricted response
description: User is restricted or not allowed response
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
examples:
response:
User is restricted response:
value:
message: User is restricted
User is not allowed response:
value:
message: Only organization admins (or higher) can filter organizaton members via
email using their personal access tokens
"404":
$ref: "#/components/responses/organizationNotFound"
post:
Expand Down Expand Up @@ -1152,6 +1157,37 @@ paths:
$ref: "#/components/responses/projectOrScreenNotFound"
"422":
$ref: "#/components/responses/notAProjectMemberOrArchived"
"/v1/projects/{project_id}/screens/{screen_id}/components":
get:
tags:
- Screens
summary: Get screen components
description: List all components in the screen
operationId: GetScreenComponents
parameters:
- $ref: "#/components/parameters/project_id"
- $ref: "#/components/parameters/screen_id"
- $ref: "#/components/parameters/limit"
- $ref: "#/components/parameters/offset"
- $ref: "#/components/parameters/include_latest_version"
- $ref: "#/components/parameters/include_linked_styleguides"
responses:
"200":
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Component"
examples:
response:
value:
- $ref: "#/components/examples/component/value"
"404":
$ref: "#/components/responses/projectOrScreenNotFound"
"422":
$ref: "#/components/responses/projectArchived"
"/v1/projects/{project_id}/screens/{screen_id}/notes":
get:
tags:
Expand Down Expand Up @@ -3137,13 +3173,9 @@ paths:
- $ref: "#/components/parameters/notification_type"
- name: id
in: query
description: >
description: |
Filter by id
**Note:** Please prefer multiple parameter instances over comma-separated values.
Example: `?id=5fbe387f8c72ef23659fb500&id=602281f4783f72fccc045484`
required: false
schema:
Expand Down Expand Up @@ -11265,9 +11297,6 @@ components:
☝️Note that the Developer role maps to `member` and the Reviewer role maps to `alien` in the API.
**Note:** Please prefer multiple parameter instances over comma-separated values.
Example: `?role=owner&role=admin`
required: false
schema:
Expand All @@ -11291,13 +11320,9 @@ components:
notification_type:
name: type
in: query
description: >
description: |
Filter by type
**Note:** Please prefer multiple parameter instances over comma-separated values.
Example: `?type=project.extension&type=styleguide.extension`
required: false
schema:
Expand Down Expand Up @@ -11344,6 +11369,24 @@ components:
schema:
type: boolean
default: false
handle:
name: handle
in: query
description: >
Filter organization members by email, username or unique identifier of
the user
☝️Note that only organization admins (or higher) can filter members using email addresses.
Example: `?handle=zozo&handle=5d9caaecb4a3fa9bc9718686&handle=zozo%40zeplin.io`
required: false
schema:
type: array
uniqueItems: true
items:
type: string
responses:
cannotAccessProjectWebhook:
description: User cannot access project webhook
Expand Down

0 comments on commit c90fba1

Please sign in to comment.