mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-22 12:21:10 +00:00
Removing version from API calls.
This commit is contained in:
parent
28219623e7
commit
48dc74d4e1
2 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ NoNewPrivileges=true
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
|
|
||||||
If you did everything right, the Lemmy logs from `journalctl -u lemmy` should show "Starting http server at 127.0.0.1:8536". You can also run `curl localhost:8536/api/v3/site` which should give a successful response, looking like `{"site_view":null,"admins":[],"banned":[],"online":0,"version":"unknown version","my_user":null,"federated_instances":null}`.
|
If you did everything right, the Lemmy logs from `journalctl -u lemmy` should show "Starting http server at 127.0.0.1:8536". You can also run `curl localhost:8536/api/{version}/site` which should give a successful response, looking like `{"site_view":null,"admins":[],"banned":[],"online":0,"version":"unknown version","my_user":null,"federated_instances":null}`.
|
||||||
|
|
||||||
### Install lemmy-ui (web frontend)
|
### Install lemmy-ui (web frontend)
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ This contains extras not in the [API docs](/api).
|
||||||
**GET example**
|
**GET example**
|
||||||
|
|
||||||
```
|
```
|
||||||
curl "http://localhost:8536/api/v2/community/list?sort=Hot"`
|
curl "http://localhost:8536/api/{version}/community/list?sort=Hot"`
|
||||||
```
|
```
|
||||||
|
|
||||||
**POST example**
|
**POST example**
|
||||||
|
@ -33,7 +33,7 @@ curl -i -H \
|
||||||
"score": 1,
|
"score": 1,
|
||||||
"auth": eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MiwiaXNzIjoidGVzdC5sZW1teS5tbCJ9.P77RX_kpz1a_geY5eCp29sl_5mAm-k27Cwnk8JcIZJk
|
"auth": eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MiwiaXNzIjoidGVzdC5sZW1teS5tbCJ9.P77RX_kpz1a_geY5eCp29sl_5mAm-k27Cwnk8JcIZJk
|
||||||
}' \
|
}' \
|
||||||
http://localhost:8536/api/v2/comment/like
|
http://localhost:8536/api/{version}/comment/like
|
||||||
```
|
```
|
||||||
|
|
||||||
## HTTP API exclusive features
|
## HTTP API exclusive features
|
||||||
|
|
Loading…
Reference in a new issue