Notion - Independent Publisher (#1152)
* Notion - Independent Publisher Notion is an application that provides components such as notes, databases, kanban boards, wikis, calendars and reminders. These components and systems can be used individually, or in collaboration with others. Co-Authored-By: Harshini <65181903+harshinivarma@users.noreply.github.com> * Updated Privacy Policy - Attached Privacy Policy & website URL to the apiDefinition.swagger.json Co-Authored-By: Harshini <65181903+harshinivarma@users.noreply.github.com> * Update Readme.md Removed html code from Readme.md file. Co-Authored-By: Harshini <65181903+harshinivarma@users.noreply.github.com> * Update apiDefinition.swagger.json Removed Empty definitions. Co-Authored-By: Harshini <65181903+harshinivarma@users.noreply.github.com> * Update apiDefinition.swagger.json have updated object property visibility to none. and added proper description. Co-Authored-By: Harshini <65181903+harshinivarma@users.noreply.github.com> * Update apiDefinition.swagger.json Have added Categories. Co-Authored-By: Harshini <65181903+harshinivarma@users.noreply.github.com> * Delete settings.json have deleted settings.json file Co-Authored-By: Harshini <65181903+harshinivarma@users.noreply.github.com> * Update apiProperties.json have updated the iconBrandColor. Co-Authored-By: Harshini <65181903+harshinivarma@users.noreply.github.com> * Update apiDefinition.swagger.json Changes: - - Have removed empty paths. - Have added titles to empty operations. - Corrected category names to only two. Co-Authored-By: Harshini <65181903+harshinivarma@users.noreply.github.com> * Update apiDefinition.swagger.json i have updated description for has more * Update apiDefinition.swagger.json - have Updated all titles. and made sure no empty operations. Co-Authored-By: Harshini <harshinivarma8@gmail.com> * Update api.Definition.swagger.json - Updated changes as requested. Co-Authored-By: Harshini <harshinivarma8@gmail.com> * Update apiDefinition.swagger.json Changes: -Removed all the "_" from OperationId -Added all expected response codes. * Update api.Definition.swagger.json -Updated all the OperationID values. * Update api.Definition.swagger.json -OperationID have been updated. * Update apiDefinition.swagger.json -Operation ID has been fixed. made sure Validation error satisfied. * Update api.Definition.swagger.json -Validation Successfull. Co-authored-by: Harshini <65181903+harshinivarma@users.noreply.github.com> Co-authored-by: Harshini <harshinivarma8@gmail.com>
This commit is contained in:
Родитель
f9a80147c2
Коммит
3262d3f68f
|
@ -0,0 +1,90 @@
|
|||
# Notion
|
||||
Notion is an application that provides components such as notes, databases, kanban boards, wikis, calendars and reminders.These components and systems can be used individually, or in collaboration with others.
|
||||
|
||||
## Publisher
|
||||
### Chandra Sekhar & Harshini Varma
|
||||
|
||||
## Prerequisites
|
||||
You need to have a Notion [Personal/Enterprise account](https://www.notion.so/signup) click here for [Pricing](https://www.notion.so/pricing).
|
||||
|
||||
## Supported Operations
|
||||
### [Notion Operations](https://developers.notion.com/)
|
||||
#### List all users
|
||||
Returns a paginated list of Users for the workspace.
|
||||
|
||||
#### Retrieve a block
|
||||
Retrieves a Block object using the ID specified.
|
||||
|
||||
#### Retrieve a database
|
||||
Retrieves a Database object using the ID specified.
|
||||
|
||||
#### Retrieve block children
|
||||
Returns a paginated array of child block objects contained in the block using the ID specified.
|
||||
|
||||
#### Retrieve a user
|
||||
Retrieves a User using the ID specified.
|
||||
|
||||
#### Search
|
||||
Searches all pages and child pages that are shared with the integration. (The results may include databases)
|
||||
|
||||
#### Update a block
|
||||
Updates the content for the specified block_id based on the block type.
|
||||
|
||||
|
||||
|
||||
## Upcoming Planned Features
|
||||
#### Query a Database (Planned)
|
||||
Gets a list of Pages contained in the database, filtered and ordered according to the filter conditions and sort criteria provided in the request.
|
||||
|
||||
#### Create a Database (Planned)
|
||||
Creates a database as a subpage in the specified parent page, with the specified properties schema.
|
||||
|
||||
#### Update Database (Planned)
|
||||
Updates an existing database as specified by the parameters.
|
||||
|
||||
#### Retrieve a page (Planned)
|
||||
Retrieves a Page object using the ID specified.
|
||||
|
||||
#### Create a page (Planned)
|
||||
Creates a new page in the specified database or as a child of an existing page.
|
||||
|
||||
#### Update page (Planned)
|
||||
Updates page property values for the specified page.
|
||||
|
||||
#### Append block children (Planned)
|
||||
Creates and appends new children blocks to the parent block_id specified.
|
||||
|
||||
#### Delete a block (Planned)
|
||||
Sets a Block object, including page blocks, to archived: true using the ID specified.
|
||||
|
||||
|
||||
## API Documentation
|
||||
Visit [Start building with the Notion API ](https://developers.notion.com/) page for further details.
|
||||
|
||||
Visit [change log](https://developers.notion.com/changelog) for API Updates
|
||||
|
||||
## Known Issues and Limitations
|
||||
To ensure a consistent developer experience for all API users, the Notion API is rate limited and basic size limits apply to request parameters.
|
||||
|
||||
### Rate Limit
|
||||
* Rate-limited requests will return a "rate_limited" error code (HTTP response status 429).
|
||||
* The rate limit for incoming requests is an average of 3 requests per second. Some bursts beyond the average rate are allowed.
|
||||
* Integrations should accommodate variable rate limits by handling HTTP 429 responses and backing off (or slowing down) the speed of future requests.
|
||||
* A common way to implement this is using one or several queues for pending requests, which can be consumed by sending requests as long as Notion does not respond with an HTTP 429.
|
||||
|
||||
### Size limits
|
||||
Notion limits the size of certain parameters, and the depth of children in requests.
|
||||
* A requests that exceeds any of these limits will return "validation_error" error.
|
||||
* In addition to the property limits given, payloads have a maximum size of 1000 block elements and 500kb.
|
||||
|
||||
### Request size limits
|
||||
|
||||
These limits apply to requests sent to Notion's API only. There are different limits on the number of relations and people mentions returned by the API.
|
||||
|
||||
#### Not all operations provided by Notion are part of the first IP connector submission. We will keep adding/updating/supporting this connector based on your feedback/requests :)
|
||||
|
||||
|
||||
<!-- LICENSE -->
|
||||
## License
|
||||
|
||||
Distributed under the MIT License. See `LICENSE` for more information.
|
|
@ -0,0 +1,671 @@
|
|||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "Notion",
|
||||
"description": "Notion connector use the API to access Notion's pages, databases, and users.",
|
||||
"version": "1.0",
|
||||
"contact": {
|
||||
"name":"Chandra Sekhar & Harshini Varma",
|
||||
"url":"https://github.com/sekharmalla",
|
||||
"email":"Sekharmalla.vfx@gmail.com"
|
||||
}
|
||||
},
|
||||
"host": "api.notion.com",
|
||||
"basePath": "/v1/",
|
||||
"schemes": [
|
||||
"https"
|
||||
],
|
||||
"paths": {
|
||||
"/users/{user_id}": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "default",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"object": {
|
||||
"type": "string",
|
||||
"description": "Name of the object always user.",
|
||||
"title": "object"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Identifier for a Notion user",
|
||||
"title": "Id"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Name of the User",
|
||||
"title": "User Name"
|
||||
},
|
||||
"avatar_url": {
|
||||
"type": "string",
|
||||
"description": "Chosen avatar image",
|
||||
"title": "Avatar URL"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Type of the User or Bot",
|
||||
"title": "Type of User",
|
||||
"x-ms-visibility": "internal"
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"description": "Email address of person.",
|
||||
"title": "Email"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Retrieve User",
|
||||
"description": "Retrieves a User using the ID specified.",
|
||||
"operationId": "RetrieveUser",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "user_id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-ms-summary": "User ID",
|
||||
"x-ms-url-encoding":"single",
|
||||
"description": "Unique identifier for this user."
|
||||
},
|
||||
{
|
||||
"name": "Notion-Version",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-ms-visibility": "internal",
|
||||
"default": "2021-08-16"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/users": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "default",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Identifier for a Notion block",
|
||||
"title": "Id"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "User's name displayed in Notion.",
|
||||
"title": "Display Name"
|
||||
},
|
||||
"avatar_url": {
|
||||
"type": "string",
|
||||
"description": "Chosen avatar image.",
|
||||
"title": "Avatar URL"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Type of the user. Possible values are \"person\" and \"bot\".",
|
||||
"title": "Type"
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"description": "Email address of person.",
|
||||
"title": "Email"
|
||||
},
|
||||
"Bot": {
|
||||
"type": "object",
|
||||
"properties": {},
|
||||
"title": "Bot",
|
||||
"description": "Properties only present for bot users."
|
||||
},
|
||||
"next_cursor": {
|
||||
"type": "string",
|
||||
"description": "A cursor returned used to request the next page of results. Treat this as an opaque value",
|
||||
"title": "Next Cursor"
|
||||
},
|
||||
"has_more": {
|
||||
"type": "boolean",
|
||||
"description": "When the response includes the end of the list",
|
||||
"title": "Has more"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "List of all users",
|
||||
"description": "Returns a paginated list of Users for the workspace",
|
||||
"operationId": "Listofallusers",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "Notion-Version",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"default": "2021-08-16",
|
||||
"x-ms-visibility": "internal"
|
||||
},
|
||||
{
|
||||
"name": "page_size",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"default": 100,
|
||||
"x-ms-summary": "Page size",
|
||||
"description": "The number of items from the full list desired in the response. Maximum: 100"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/blocks/{block_id}": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "default",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"object": {
|
||||
"type": "string",
|
||||
"description": "Name of the object always block.",
|
||||
"title": "Object",
|
||||
"x-ms-visibility": "internal"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Identifier for the block.",
|
||||
"title": "Id"
|
||||
},
|
||||
"created_time": {
|
||||
"type": "string",
|
||||
"description": "Date and time when this block was created.",
|
||||
"title": "Created time",
|
||||
"format": "date-time"
|
||||
},
|
||||
"last_edited_time": {
|
||||
"type": "string",
|
||||
"description": "Date and time when this block was last updated.",
|
||||
"title": "Last edited time",
|
||||
"format": "date-time"
|
||||
},
|
||||
"has_children": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the block has children blocks nested within it.",
|
||||
"title": "Has children",
|
||||
"enum": [
|
||||
true,
|
||||
false
|
||||
]
|
||||
},
|
||||
"archived": {
|
||||
"type": "boolean",
|
||||
"description": "The archived status of the block.",
|
||||
"title": "Archived",
|
||||
"enum": [
|
||||
true,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of the block",
|
||||
"title": "Type"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "Rich text in the paragraph block.",
|
||||
"title": "Title"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Retrieve a block",
|
||||
"description": "Retrieves a Block object using the ID specified.",
|
||||
"operationId": "RetrieveBlock",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "block_id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"description": "Identifier for the block.",
|
||||
"x-ms-summary": "Block id",
|
||||
"x-ms-url-encoding":"single"
|
||||
},
|
||||
{
|
||||
"name": "Notion-Version",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"default": "2021-08-16",
|
||||
"x-ms-visibility": "internal"
|
||||
}
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"consumes": ["application/json"],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "default",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"object": {
|
||||
"type": "string",
|
||||
"description": "Name of the object.",
|
||||
"title": "Object"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Identifier for a Notion block",
|
||||
"title": "Id"
|
||||
},
|
||||
"created_time": {
|
||||
"type": "string",
|
||||
"description": "Date and time when this page was created.",
|
||||
"title": "Created time"
|
||||
},
|
||||
"last_edited_time": {
|
||||
"type": "string",
|
||||
"description": "Date and time when this block was last updated.",
|
||||
"title": "Last edited time",
|
||||
"format": "date-time"
|
||||
},
|
||||
"has_children": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the block has children blocks nested within it.",
|
||||
"title": "Has children"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Type of block. Possible values",
|
||||
"title": "Type"
|
||||
},
|
||||
"archived": {
|
||||
"type": "boolean",
|
||||
"description": "The archived status of the block.",
|
||||
"title": "archived"
|
||||
},
|
||||
"content": {
|
||||
"type": "string",
|
||||
"description": "Updates the content for the specified block_id based on the block type.",
|
||||
"title": "Content"
|
||||
},
|
||||
"plain_text": {
|
||||
"type": "string",
|
||||
"description": "Plain text in the paragraph block plain_text",
|
||||
"title": "Plain text"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Update a block (to-do)",
|
||||
"description": "Updates the content for the specified block_id based on the block type to-do.",
|
||||
"operationId": "UpdateaBlock",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "block_id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"description": "Identifier for a Notion block",
|
||||
"x-ms-summary": "Block id",
|
||||
"x-ms-url-encoding":"single"
|
||||
},
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"default": "application/json",
|
||||
"x-ms-visibility": "internal"
|
||||
},
|
||||
{
|
||||
"name": "Notion-Version",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"default": "2021-08-16",
|
||||
"x-ms-visibility": "internal"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"to_do": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"text": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"text": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string",
|
||||
"description": "content"
|
||||
}
|
||||
},
|
||||
"description": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "text"
|
||||
}
|
||||
},
|
||||
"description": "to_do"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/blocks/{block_id}/children": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "default",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"object": {
|
||||
"type": "string",
|
||||
"description": "Name of the object.",
|
||||
"title": "Object",
|
||||
"x-ms-visibility": "internal"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Identifier for the block.",
|
||||
"title": "id"
|
||||
},
|
||||
"created_time": {
|
||||
"type": "string",
|
||||
"description": "Date and time when this block was created.",
|
||||
"title": "Created time",
|
||||
"format": "date-time"
|
||||
},
|
||||
"last_edited_time": {
|
||||
"type": "string",
|
||||
"description": "Date and time when this block was last updated.",
|
||||
"title": "Last edited time",
|
||||
"format": "date-time"
|
||||
},
|
||||
"has_children": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the block has children blocks nested within it.",
|
||||
"title": "Has children",
|
||||
"enum": [
|
||||
true,
|
||||
false
|
||||
]
|
||||
},
|
||||
"archived": {
|
||||
"type": "boolean",
|
||||
"description": "The archived status of the block.",
|
||||
"title": "Archived",
|
||||
"enum": [
|
||||
true,
|
||||
false
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Type of block. Possible values",
|
||||
"title": "Type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"plain_text": {
|
||||
"type": "string",
|
||||
"description": "Plain text in the paragraph block plain_text",
|
||||
"title": "Plain text"
|
||||
},
|
||||
"next_cursor": {
|
||||
"type": "string",
|
||||
"description": "A cursor returned used to request the next page of results. Treat this as an opaque value",
|
||||
"title": "Next cursor"
|
||||
},
|
||||
"has_more": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the block has more blocks or not",
|
||||
"title": "Has more",
|
||||
"enum": [
|
||||
true,
|
||||
false
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Retrieve block children",
|
||||
"description": "Returns a paginated array of child block objects contained in the block using the ID specified",
|
||||
"operationId": "RetrieveBlockChildren",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "block_id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-ms-summary": "Block id",
|
||||
"x-ms-url-encoding":"single",
|
||||
"description": "Identifier for a block"
|
||||
},
|
||||
{
|
||||
"name": "page_size",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"default": 100,
|
||||
"x-ms-summary": "Page size",
|
||||
"description": "The number of items from the full list desired in the response. Maximum: 100"
|
||||
},
|
||||
{
|
||||
"name": "Notion-Version",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"default": "2021-08-16",
|
||||
"x-ms-visibility": "internal"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/databases/{database_id}": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "default",
|
||||
"schema": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Retrieve a database",
|
||||
"operationId": "RetrieveADatabase",
|
||||
"description": "Retrieves a Database object using the ID specified.",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "database_id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"description": "Identifier for a Notion database",
|
||||
"x-ms-summary": "Database id",
|
||||
"x-ms-url-encoding":"single"
|
||||
},
|
||||
{
|
||||
"name": "Notion-Version",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"default": "2021-08-16",
|
||||
"x-ms-visibility": "internal"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/search": {
|
||||
"post": {
|
||||
"consumes": ["application/json"],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "default",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"object": {
|
||||
"type": "string",
|
||||
"description": "Name of the object.",
|
||||
"title": "Object"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Identifier for the block.",
|
||||
"title": "id"
|
||||
},
|
||||
"created_time": {
|
||||
"type": "string",
|
||||
"description": "Date and time when this page was created.",
|
||||
"title": "Created time"
|
||||
},
|
||||
"last_edited_time": {
|
||||
"type": "string",
|
||||
"description": "Date and time when this page was updated.",
|
||||
"title": "Last edited time"
|
||||
},
|
||||
"plain_text": {
|
||||
"type": "string",
|
||||
"description": "The plain text without annotations.",
|
||||
"title": "Plain text"
|
||||
},
|
||||
"Tags": {
|
||||
"type": "object",
|
||||
"description": "The tags object contains the list of tags.",
|
||||
"title": "Tags"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL of the object.",
|
||||
"title": "URL"
|
||||
},
|
||||
"next_cursor": {
|
||||
"type": "string",
|
||||
"description": "A cursor returned used to request the next page of results. Treat this as an opaque value",
|
||||
"title": "Next cursor"
|
||||
},
|
||||
"has_more": {
|
||||
"type": "boolean",
|
||||
"description": "Whether or not the block has more blocks or not.",
|
||||
"title": "Has more"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary": "Search",
|
||||
"description": "Searches all pages and child pages that are shared with the integration. The results may include databases.",
|
||||
"operationId": "Search",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"default": "application/json",
|
||||
"x-ms-visibility": "internal"
|
||||
},
|
||||
{
|
||||
"name": "Notion-Version",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"default": "2021-08-16",
|
||||
"x-ms-visibility": "internal"
|
||||
},
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"query": {
|
||||
"type": "string",
|
||||
"description": "When supplied, limits which pages are returned by comparing the query to the page title.",
|
||||
"title": "Query"
|
||||
},
|
||||
"sort": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"direction": {
|
||||
"type": "string",
|
||||
"description": "The direction to sort. Possible values include ascending and descending.",
|
||||
"title": "Direction"
|
||||
},
|
||||
"timestamp": {
|
||||
"type": "string",
|
||||
"description": "The name of the timestamp to sort against. Possible values include last_edited_time.",
|
||||
"title": "Timestamp"
|
||||
}
|
||||
},
|
||||
"description": "sort"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"query"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {},
|
||||
"parameters": {},
|
||||
"responses": {},
|
||||
"securityDefinitions": {
|
||||
"API Key": {
|
||||
"type": "apiKey",
|
||||
"in": "header",
|
||||
"name": "Authorization"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"API Key": []
|
||||
}
|
||||
],
|
||||
"tags": [],
|
||||
"x-ms-connector-metadata": [
|
||||
{
|
||||
"propertyName": "Website",
|
||||
"propertyValue": "https://www.notion.so/"
|
||||
},
|
||||
{
|
||||
"propertyName": "Privacy policy",
|
||||
"propertyValue": "https://www.notion.so/Privacy-Policy-3468d120cf614d4c9014c09f6adc9091"
|
||||
},
|
||||
{
|
||||
"propertyName": "Categories",
|
||||
"propertyValue": "Productivity;collaboration"
|
||||
}
|
||||
]
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"properties": {
|
||||
"connectionParameters": {
|
||||
"api_key": {
|
||||
"type": "securestring",
|
||||
"uiDefinition": {
|
||||
"displayName": "API Key",
|
||||
"description": "The API Key for this api",
|
||||
"tooltip": "Provide your API Key",
|
||||
"constraints": {
|
||||
"tabIndex": 2,
|
||||
"clearText": false,
|
||||
"required": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"iconBrandColor": "#da3b01",
|
||||
"capabilities": [],
|
||||
"publisher": "Chandra Sekhar & Harshini Varma",
|
||||
"stackOwner":"Notion"
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче