REST message formats documentation.

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
tullio0106
Posts: 17
Joined: Sat Sep 13, 2014 12:27 am

REST message formats documentation.

Post by tullio0106 »

I'm trying to use the REST zimbra interface and all works well but message I receive are hard to understand.

Is there any documentation about such messages ?

Tks

Tullio
10539yutaka
Advanced member
Advanced member
Posts: 114
Joined: Sat Sep 13, 2014 12:45 am
Location: Tokyo
Contact:

REST message formats documentation.

Post by 10539yutaka »

There is a documentation for REST in source code repository, ZimbraServer/docs/rest.txt.
But I am not sure if it could help you.

So how about showing the messages you've got to us here.
tullio0106
Posts: 17
Joined: Sat Sep 13, 2014 12:27 am

REST message formats documentation.

Post by tullio0106 »

This is a "typical" message I get





Re: script cache pin

Scusate, ho sbagliato destinatari. -- Messaggio originale --


Quite cryptic.

Is there any explanation ?
10539yutaka
Advanced member
Advanced member
Posts: 114
Joined: Sat Sep 13, 2014 12:45 am
Location: Tokyo
Contact:

REST message formats documentation.

Post by 10539yutaka »

I guess you have already got it.

But the response format looks xml(SOAP).

So ZimbraServer/docs/soap.txt can help you.

You shold check "GetMsgRequest" or "AddMsgRequest".
Or you can change the format.

You better check this out for that:

ZCS 6.0:Zimbra REST API Reference - Zimbra :: Wiki
tullio0106
Posts: 17
Joined: Sat Sep 13, 2014 12:27 am

REST message formats documentation.

Post by tullio0106 »

My question is very easy I see tags named , , etc... and I shoud immagine what they mean.

Where can I find the meaning ?

XML format is god for me.

Another question You told me about a directory in the server I can't access : where can I find such docs in the net ?

Tks
tdesorbaix
Outstanding Member
Outstanding Member
Posts: 366
Joined: Fri Sep 12, 2014 10:31 pm

REST message formats documentation.

Post by tdesorbaix »

On your server the docs are in /opt/zimbra/docs
And indeed, the result you get is from SOAP API, not REST API.
JoshuaPrismon
Outstanding Member
Outstanding Member
Posts: 458
Joined: Fri Sep 12, 2014 9:59 pm

REST message formats documentation.

Post by JoshuaPrismon »

[quote user="tullio0106"]My question is very easy I see tags named , , etc... and I shoud immagine what they mean.

Where can I find the meaning ?

XML format is god for me.

Another question You told me about a directory in the server I can't access : where can I find such docs in the net ?

Tks[/QUOTE]
Part of the reason for this is simply try and minimize amount of xml transmitting. e generally is envelope, m is message, etc. As mentioned by others, look at the SOAP description to figure it out.
Post Reply