3

I have to create a webservice for Carddav server implementation to provide contacts to Iphone after authentication.

I want to know the steps from start to end about url and parameter it will expect.

Means, at first it hit with url, username and password.

So, How i have to configure my methods and parameter?

I have readout the RFC links but still its not clear to me.

crthompson
  • 15,653
  • 6
  • 58
  • 80
Syeda
  • 1,215
  • 11
  • 23

1 Answers1

4

You should look at the documentation for Google's implementation.

For authentication, use OAuth. If you need to supply your own OAuth authentication, look at DotNetOpenAuth.

For your REST Api, try to mimic Google's implementation which looks something like this:

Principal

https://www.googleapis.com/carddav/v1/principals/{userEmail}

Home Set

https://www.googleapis.com/carddav/v1/principals/{userEmail}/lists

Address Book

https://www.googleapis.com/carddav/v1/principals/{userEmail}/lists/default

Contact

https://www.googleapis.com/carddav/v1/principals/{userEmail}/lists/default/contactId
shamp00
  • 11,106
  • 4
  • 38
  • 81
  • I think OAuth would not work with CardDAV and CalDAV server implementation with iOS client. iOS CardDAV client supports OAuth for Google server only, as far as I understand. You will need to use Basic or Digest auth in your server. – IT Hit WebDAV Jan 03 '14 at 21:35