1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

adjust examples

Peter Bieringer 2024-06-10 21:55:14 +02:00
parent 047c3da6aa
commit 2d398936cb

@ -99,26 +99,18 @@ Access to the requested resource forbidden.
#### Depth: 0
```
curl -s --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format -
<?xml version="1.0" encoding="utf-8"?>
<multistatus xmlns="DAV:">
<response>
...
</response>
</multistatus>
curl -s --header 'Depth: 0' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "<href>"
<href>/</href>
<href>/</href>
<href>/USER1/</href>
```
#### Depth: 1
```
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format -
<?xml version="1.0" encoding="utf-8"?>
<multistatus xmlns="DAV:">
<response>
...
</response>
</multistatus>
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "<href>"
<href>/</href>
<href>/USER1/</href>
```
#### Depth: 1 / extending URI by user
@ -126,9 +118,15 @@ curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localho
(example)
```
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/USER1/ | xmllint --format - | grep displayname
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/USER1/ | xmllint --format - | grep -E "(^ <href>|displayname|C:calendar-description)"
<href>/USER1/</href>
<href>/USER1/mycalendar1/</href>
<displayname>MyCalendar1</displayname>
<displayname>Feiertage Bayern</displayname>
<displayname>MyCalendar2</displayname>
<C:calendar-description>MyCalendar1</C:calendar-description>
<href>/USER1/mysharedcalendar1/</href>
<displayname>MySharedCalendar1</displayname>
<C:calendar-description>MySharedCalendar1</C:calendar-description>
<href>/USER1/feiertagebayern/</href>
<displayname>Feiertage Bayern</displayname>
<C:calendar-description>Feiertage Bayern</C:calendar-description>
```