mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-21 20:01:10 +00:00
Change join.lemmy.ml to join-lemmy.org
This commit is contained in:
parent
67389c2cde
commit
4740da4d97
13 changed files with 17 additions and 17 deletions
|
@ -20,7 +20,7 @@
|
|||
- [Client Development](client_development/client_development.md)
|
||||
- [Theming Guide](client_development/theming.md)
|
||||
- [API reference](client_development/api_reference.md)
|
||||
- [WebSocket API](https://join.lemmy.ml/api/index.html)
|
||||
- [WebSocket API](https://join-lemmy.org/api/index.html)
|
||||
- [HTTP API](client_development/http_api.md)
|
||||
- [Creating a Custom Frontend](client_development/custom_frontend.md)
|
||||
- [Contributing](contributing/contributing.md)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# API reference
|
||||
|
||||
Lemmy has two, intertwined APIs:
|
||||
- [WebSocket](https://join.lemmy.ml/api/index.html)
|
||||
- [WebSocket](https://join-lemmy.org/api/index.html)
|
||||
- [HTTP](http_api.md)
|
||||
|
||||
This page describes concepts that are common to both.
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
- [Theming Guide](client_development/theming.md)
|
||||
- [API reference](client_development/api_reference.md)
|
||||
- [WebSocket API](https://join.lemmy.ml/api/index.html)
|
||||
- [HTTP API](client_development/http_api.md)
|
||||
- [WebSocket API](https://join-lemmy.org/api/index.html)
|
||||
- [HTTP API](client_development/http_api.md)
|
||||
|
|
|
@ -20,14 +20,14 @@
|
|||
|
||||
## WebSocket vs HTTP API
|
||||
Lemmy's HTTP API is almost identical to its WebSocket API:
|
||||
- **WebSocket API** needs `let send = { op: userOperation[op], data: form}` as shown in [the WebSocketAPI specification](https://join.lemmy.ml/api/index.html)
|
||||
- **WebSocket API** needs `let send = { op: userOperation[op], data: form}` as shown in [the WebSocketAPI specification](https://join-lemmy.org/api/index.html)
|
||||
- **HTTP API** needs the form (data) at the top level, an HTTP operation (GET, PUT or POST) and endpoint (at `http(s)://host/api/v2/endpoint`). For example:
|
||||
|
||||
> `POST {username_or_email: X, password: X}`
|
||||
|
||||
For more information, see the [http.ts](https://github.com/LemmyNet/lemmy-js-client/blob/main/src/http.ts) file.
|
||||
|
||||
[The WebSocket API](https://join.lemmy.ml/api/index.html) should be regarded as the primary source for the HTTP API since it also provides information about how to form HTTP API calls.
|
||||
[The WebSocket API](https://join-lemmy.org/api/index.html) should be regarded as the primary source for the HTTP API since it also provides information about how to form HTTP API calls.
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ In the following tables, "mandatory" refers to whether or not Lemmy will accept
|
|||
"sc": "http://schema.org#",
|
||||
"stickied": "as:stickied",
|
||||
"sensitive": "as:sensitive",
|
||||
"pt": "https://join.lemmy.ml#",
|
||||
"pt": "https://join-lemmy.org#",
|
||||
"comments_enabled": {
|
||||
"type": "sc:Boolean",
|
||||
"id": "pt:commentsEnabled"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
- [Client Development](client_development/client_development.md)
|
||||
- [Theming Guide](client_development/theming.md)
|
||||
- [API reference](client_development/api_reference.md)
|
||||
- [WebSocket API](https://join.lemmy.ml/api/index.html)
|
||||
- [WebSocket API](https://join-lemmy.org/api/index.html)
|
||||
- [HTTP API](client_development/http_api.md)
|
||||
- [Creating a Custom Frontend](client_development/custom_frontend.md)
|
||||
- [Contributing](contributing/contributing.md)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# API reference
|
||||
|
||||
Lemmy has two, intertwined APIs:
|
||||
- [WebSocket](https://join.lemmy.ml/api/index.html)
|
||||
- [WebSocket](https://join-lemmy.org/api/index.html)
|
||||
- [HTTP](http_api.md)
|
||||
|
||||
This page describes concepts that are common to both.
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
- [Theming Guide](client_development/theming.md)
|
||||
- [API reference](client_development/api_reference.md)
|
||||
- [WebSocket API](https://join.lemmy.ml/api/index.html)
|
||||
- [HTTP API](client_development/http_api.md)
|
||||
- [WebSocket API](https://join-lemmy.org/api/index.html)
|
||||
- [HTTP API](client_development/http_api.md)
|
||||
|
|
|
@ -20,14 +20,14 @@
|
|||
|
||||
## WebSocket vs HTTP API
|
||||
Lemmy's HTTP API is almost identical to its WebSocket API:
|
||||
- **WebSocket API** needs `let send = { op: userOperation[op], data: form}` as shown in [the WebSocketAPI specification](https://join.lemmy.ml/api/index.html)
|
||||
- **WebSocket API** needs `let send = { op: userOperation[op], data: form}` as shown in [the WebSocketAPI specification](https://join-lemmy.org/api/index.html)
|
||||
- **HTTP API** needs the form (data) at the top level, an HTTP operation (GET, PUT or POST) and endpoint (at `http(s)://host/api/v2/endpoint`). For example:
|
||||
|
||||
> `POST {username_or_email: X, password: X}`
|
||||
|
||||
For more information, see the [http.ts](https://github.com/LemmyNet/lemmy-js-client/blob/main/src/http.ts) file.
|
||||
|
||||
[The WebSocket API](https://join.lemmy.ml/api/index.html) should be regarded as the primary source for the HTTP API since it also provides information about how to form HTTP API calls.
|
||||
[The WebSocket API](https://join-lemmy.org/api/index.html) should be regarded as the primary source for the HTTP API since it also provides information about how to form HTTP API calls.
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ En las siguientes tablas, "obligatorio" se refiere a si Lemmy aceptará o no una
|
|||
"sc": "http://schema.org#",
|
||||
"stickied": "as:stickied",
|
||||
"sensitive": "as:sensitive",
|
||||
"pt": "https://join.lemmy.ml#",
|
||||
"pt": "https://join-lemmy.org#",
|
||||
"comments_enabled": {
|
||||
"type": "sc:Boolean",
|
||||
"id": "pt:commentsEnabled"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
- [Client Development](client_development/client_development.md)
|
||||
- [Theming Guide](client_development/theming.md)
|
||||
- [API reference](client_development/api_reference.md)
|
||||
- [WebSocket API](https://join.lemmy.ml/api/index.html)
|
||||
- [WebSocket API](https://join-lemmy.org/api/index.html)
|
||||
- [HTTP API](client_development/http_api.md)
|
||||
- [Creating a Custom Frontend](client_development/custom_frontend.md)
|
||||
- [Contributing](contributing/contributing.md)
|
||||
|
|
|
@ -62,7 +62,7 @@ Dans les tableaux suivants, le terme "obligatoire" indique si Lemmy accepte ou n
|
|||
"sc": "http://schema.org#",
|
||||
"stickied": "as:stickied",
|
||||
"sensitive": "as:sensitive",
|
||||
"pt": "https://join.lemmy.ml#",
|
||||
"pt": "https://join-lemmy.org#",
|
||||
"comments_enabled": {
|
||||
"type": "sc:Boolean",
|
||||
"id": "pt:commentsEnabled"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
- [Разработка Клиентов](client_development/client_development.md)
|
||||
- [Руководство по темам](client_development/theming.md)
|
||||
- [Справочник по API](client_development/api_reference.md)
|
||||
- [WebSocket API](https://join.lemmy.ml/api/index.html)
|
||||
- [WebSocket API](https://join-lemmy.org/api/index.html)
|
||||
- [HTTP API](client_development/http_api.md)
|
||||
- [Создание пользовательского интерфейса](client_development/custom_frontend.md)
|
||||
- [Вклад](contributing/contributing.md)
|
||||
|
|
Loading…
Reference in a new issue