Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Base64 Replace Schema Option #456

Open
jleandroperez opened this issue Mar 5, 2015 · 0 comments
Open

Documentation: Base64 Replace Schema Option #456

jleandroperez opened this issue Mar 5, 2015 · 0 comments

Comments

@jleandroperez
Copy link
Contributor

Let's update Simperium.com documentation, so that it reflects the need of setting Replace properties for any base64 encoded fields.

POST https://api.simperium.com/1/<app id>/__options__/i/<bucket name>

{ "schema" : { "attributes" : { "<fieldname>" :{ "otype" : "replace" } } } }

Example:

App ID: test-app-1337
Bucket Name: blarb
Field Name: b64thing

POST https://api.simperium.com/1/test-app-1337/__options__/i/blarb

{ "schema" : { "attributes" : { "b64thing" :{ "otype" : "replace" } } } }

Will change the default diff mode for the field "b64thing" for objects in the "blarb" bucket from string to replace.
larryryu pushed a commit to foreflight/simperium-ios that referenced this issue Oct 12, 2016
Added an override otype attribute for SPMember. otype can now be added
as a user info key to the attribute in the core data model. This is to
allow for a default operation type when syncing changes much like
server schema config.

Simperium#456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant