Move API Reference (#23777)
* merge mattermost-api-reference unchanged * api: update repostiory paths * api: drop GitPod for api (for now) * api: improved node_modules target * api: relocate GitHub actions to root * Update .github/workflows/api.yml Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com> * fix cache-dependency-path * adopt node-version-file * pin versions for uses * tidy steps/runs * api/.gitpod.yml: tidy * api: rm now unused .gitlab-ci.yml --------- Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3f99b7618d
Коммит
d9614cbb12
38
api/v4/source/opengraph.yaml
Обычный файл
38
api/v4/source/opengraph.yaml
Обычный файл
@@ -0,0 +1,38 @@
|
||||
/api/v4/opengraph:
|
||||
post:
|
||||
tags:
|
||||
- OpenGraph
|
||||
summary: Get open graph metadata for url
|
||||
description: >
|
||||
Get Open Graph Metadata for a specif URL. Use the Open Graph protocol to
|
||||
get some generic metadata about a URL. Used for creating link previews.
|
||||
|
||||
|
||||
__Minimum server version__: 3.10
|
||||
|
||||
|
||||
##### Permissions
|
||||
|
||||
No permission required but must be logged in.
|
||||
operationId: OpenGraph
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- url
|
||||
properties:
|
||||
url:
|
||||
type: string
|
||||
description: The URL to get Open Graph Metadata.
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
description: Open Graph retrieval successful
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/OpenGraph"
|
||||
"501":
|
||||
$ref: "#/components/responses/NotImplemented"
|
||||
Ссылка в новой задаче
Block a user