GSD WebDAV Card routes

Multiple database configuration


In case web-dav is connected to more than one database, each request should have a databaseAlias prefix. When there is only one database configured for particular web-dav service databaseAlias should remain empty.

GET

GET databaseAlias/card/:username/:cardId

Method that returns vcard for provided username

DELETE

DELETE databaseAlias/card/:username/:cardId

Method that deletes vcard from particular address book

MOVE

MOVE databaseAlias/card/:username/:cardId

Method that moves vcard from one address book to another address book

Request

Headers

Field Value
Destination addressbookIdTo/addressbookIdFrom

PROPFIND

PROPFIND databaseAlias/card/:username/

Method that allows to fetch properties from an url

PROPFIND databaseAlias/card/:username/:addressbookId

Method that allows to fetch properties from an url

PROPFIND databaseAlias/card/:username/:addressbookId/:cardId

Method that allows to fetch properties from an url

Body

Body in XML format according to WebDav protocol

PUT

PUT databaseAlias/card/:username/:addressbookId/:cardId

Method that creates vcard in particular addressbookId

Request

Headers

Field Value
If-None-Match *

Body

Body in VCARD format

PUT databaseAlias/card/:username/:addressbookId/:cardId

Method that updates vcard in particular addressbookId

Request

Headers

Field Description
If-Match last datestamp of vcard

Body

Body in VCARD format

Report

Report databaseAlias/card/:username/:addressbookId/:cardId

Method that allows to fetch properties for vcards

Body

List of vcard Ids in XML format according to WebDav protocol