[
https://issues.apache.org/jira/browse/JAMES-3091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
René Cordier resolved JAMES-3091.
---------------------------------
Fix Version/s: 3.6.0
Resolution: Done
> mailboxes/get POJO and serialization
> ------------------------------------
>
> Key: JAMES-3091
> URL: https://issues.apache.org/jira/browse/JAMES-3091
> Project: James Server
> Issue Type: Sub-task
> Reporter: René Cordier
> Priority: Major
> Fix For: 3.6.0
>
>
> Mailboxes get method should follow the
> - JMAP core specification section /get
> - JMAP Mail specification section Mailboxes/get
> *JMAP core specification section /get*
> Reference: [https://jmap.io/spec-core.html#get]
> required types:
> - Id: JMAP Id type [https://jmap.io/spec-core.html#the-id-data-type]
> - String
> *Request*
> {code:json}
> {
> "using": ["capability1", "capability2",...],
> "methodCalls": [
> [
> "Mailbox/get",
> {
> "accountId": "JMAP-ID",
> "ids": ["JMAP-ID-1", "JMAP-ID-2", ...],
> "properties": ["prop1", "prop2", ...]
> }
> ]
> ]
> }
> {code}
> *Response*
> {code:java}
> {
> "methodResponses": [
> [
> "Mailbox/get",
> {
> "accountId": "JMAP-ID", // the requested accountId
> "state":
> "state-in-the-scope-of-all-mailboxes-associated-with-account-id"
> "list": [
> {
> "prop1": "val1",
> "prop2": "val2",
> ...
> },
> ...
> ],
> "notFound": ["JMAP-ID-1", "JMAP-ID-2", ...]
> }
> ]
> ],
> "sessionState": "abc"
> }
> {code}
> *JMAP Mail specification section Mailboxes/get*
> Reference [https://jmap.io/spec-mail.html#mailboxes]
> *DOD*:
> - implement POJOs and the serializer if needed
> - tests to match the rules of mailboxes/get request specified in the spec
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]