Skip to content

Commit

Permalink
Merge pull request #59 from hyvor/docker-docs-update
Browse files Browse the repository at this point in the history
Add updates to the Docker section of docs
  • Loading branch information
supun-io authored Nov 14, 2024
2 parents 577a868 + eff3d9b commit e73d085
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions website/src/routes/[[slug]]/Docker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,62 @@
Now you can access Unfold endpoints.
</p>

<h2 id="endpoints">Endpoints</h2>

<h3>Unfold Endpoint</h3>

<CodeBlock
language='ts'
code={`
http://127.0.0.1:7272/unfold?url=https://hyvor.com.com&method=link
Method: GET
URL: 'http://127.0.0.1:7272/unfold'
Query Parameters:
url: string
method: link | embed | null // default: link
Response:
{
url: string,
lastUrl: string,
title: string | null,
description: string | null,
siteName: string | null,
siteUrl: string | null,
canonicalUrl: string | null,
publishedTime: string | null,
modifiedTime: string | null,
thumbnailUrl: string | null,
iconUrl: string | null,
locale: string | null,
authors: string[],
tags: string[],
durationMs: number
}
Example: 'http://127.0.0.1:7272/unfold?url=https://hyvor.com.com&method=link'
`}
/>

<h3>Iframe Endpoint</h3>

<CodeBlock
language='ts'
code={`
http://127.0.0.1:7272/iframe?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ
Method: GET
URL: 'http://127.0.0.1:7272/iframe'
Query Parameters:
url: string
Response:
{
url: string,
embed: string,
durationMs: number
}
Example: 'http://127.0.0.1:7272/iframe?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ'
`}
/>

Expand Down

0 comments on commit e73d085

Please sign in to comment.