ditup.org REST API documentation version v1
https://api.ditup.org/{version}
- version: required (v1)
/users
The following data can be received:
- new users:
?sort=-created&page[offset]=0&page[limit]=5
- users with my tags
?filter[byMyTags]
- users by tags
?filter[tag]=tag1,tag2,tag3
TODO rename - new users with my tags:
?sort=-created&filter[withMyTags]=2&page[offset]=5&page[limit]=3
- users within a rectangle:
?filter[location]=-1.0,-1.0,1.0,1.0
Create a new user with unverified email. Verification message will be sent to the provided email.
Edit user profile (givenName, familyName, description, location).
Get an avatar image of an user. Specifying size is supported.
Upload avatar image. Maximum size is 2MB.
/auth
/account
/contacts
Show trust and reference which user gave or received. Don't show unconfirmed contacts to 3rd users. Don't show trust and reference to user who received contact request and didn't confirm, yet.
Create a contact request.
Show a contact between two users including reference and trust given by :from
to :to
- the requester should see unconfirmed contact including message
- the requested should see only the message of the unconfirmed contact
- every other logged user can see only confirmed contacts (trust and reference)
The following actions are supported:
- confirm a contact request
- update a contact from self
Delete a contact.
/messages
Create a new message to another user.
The following information can be retrieved:
- messages with another user
- threads
- amount of threads with unread messages