Skip to content
Snippets Groups Projects
Verified Commit 908e8824 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added identity list

parent 44bfd8b2
No related branches found
No related tags found
No related merge requests found
Pipeline #3942 passed
...@@ -3,6 +3,26 @@ ...@@ -3,6 +3,26 @@
"id": "https://retribute.me/@Alice.json", "id": "https://retribute.me/@Alice.json",
"url": "https://retribute.me/@Alice.html", "url": "https://retribute.me/@Alice.html",
"summary": "My name is Alice, I produce Creative Commons electro music. I need your support to continue working on my audio pieces!", "summary": "My name is Alice, I produce Creative Commons electro music. I need your support to continue working on my audio pieces!",
"identities": [
{
"provider": "fediverse",
"id": "alice@mastodon.instance",
"url": "https://mastodon.instance/alice",
"weight": 1
},
{
"provider": "musicbrainz",
"id": "176216c5-d6e7-4df1-83cf-85251328eb90",
"url": "https://musicbrainz.org/artist/176216c5-d6e7-4df1-83cf-85251328eb90",
"weight": 2
},
{
"provider": "custom",
"id": "personal-website",
"url": "https://alice.me",
"weight": 3
}
],
"means": [ "means": [
{ {
"provider": "flattr", "provider": "flattr",
......
...@@ -38,11 +38,56 @@ ...@@ -38,11 +38,56 @@
"description": "A list of retribution means", "description": "A list of retribution means",
"type": "array", "type": "array",
"items": { "$ref": "#/definitions/mean" } "items": { "$ref": "#/definitions/mean" }
},
"identities": {
"description": "A list of identities lined to the profile",
"type": "array",
"items": { "$ref": "#/definitions/identity" }
} }
}, },
"definitions": { "definitions": {
"identity": {
"description": "A single retribution mean. The provider and id must form a unique combination",
"type": "object",
"required": ["provider", "id", "weight"],
"minItems": 0,
"properties": {
"provider": {
"type": "string",
"description": "A provider id",
"examples": [
"facebook",
"twitter",
"fediverse",
"instagram",
"keybase",
"youtube",
"funkwhale",
"peertube",
"custom"
]
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"summary": {
"type": "string"
},
"weight": {
"type": "integer",
"minimum": 0,
"description": "Weight of the identity. Higher values mean this identity is displayed first"
}
}
},
"mean": { "mean": {
"description": "A single retribution mean. The type and id must form a unique combination", "description": "A single retribution mean. The provider and id must form a unique combination",
"type": "object", "type": "object",
"required": ["provider", "id", "weight"], "required": ["provider", "id", "weight"],
"minItems": 1, "minItems": 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment