mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-01 10:09:54 +00:00
Added links to summary and inserted links to WebSocket API
This commit is contained in:
parent
847e6fecff
commit
a664037c0f
2 changed files with 3 additions and 1 deletions
|
@ -21,6 +21,8 @@
|
|||
- [Docker Development](contributing/docker_development.md)
|
||||
- [Local Development](contributing/local_development.md)
|
||||
- [Theming Guide](contributing/theming.md)
|
||||
- [API reference](contributing/api_reference)
|
||||
- [WebSocket API](https://join.lemmy.ml/api/index.html))
|
||||
- [HTTP API](contributing/http_api.md)
|
||||
- [Creating a Custom Frontend](contributing/custom_frontend.md)
|
||||
- [Tests](contributing/tests.md)
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
## 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](add_link)
|
||||
- **WebSocket API** needs `let send = { op: userOperation[op], data: form}` as shown in [the WebSocketAPI specification](https://join.lemmy.ml/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}`
|
||||
|
|
Loading…
Reference in a new issue