kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
feat(docs): add usage statistics to nodeinfo specs
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2629>environments/review-docs-nodei-atesoo/deployments/18713
rodzic
7ac6447308
commit
3d5381760f
|
@ -0,0 +1 @@
|
||||||
|
Updated nodeinfo spec to include usage statistics.
|
|
@ -37,15 +37,9 @@ The NodeInfo endpoint must contain all mandatory elements listed in the specific
|
||||||
`longDescription` (String)
|
`longDescription` (String)
|
||||||
: A longer description of the pod
|
: A longer description of the pod
|
||||||
|
|
||||||
`rules` (String)
|
|
||||||
: A collection of rules users of the pod must abide by
|
|
||||||
|
|
||||||
`contactEmail` (Email address)
|
`contactEmail` (Email address)
|
||||||
: The email address of the pod administrator
|
: The email address of the pod administrator
|
||||||
|
|
||||||
`terms` (String)
|
|
||||||
: The terms of use associated with the pod
|
|
||||||
|
|
||||||
`nodeName`(String)
|
`nodeName`(String)
|
||||||
: The name of the pod
|
: The name of the pod
|
||||||
|
|
||||||
|
@ -140,16 +134,19 @@ Example response:
|
||||||
"activeMonth": 0
|
"activeMonth": 0
|
||||||
},
|
},
|
||||||
"localPosts": 0,
|
"localPosts": 0,
|
||||||
"localComments": 0
|
"localComments": 0,
|
||||||
|
"listenings": 0,
|
||||||
|
"downloads": 0,
|
||||||
|
"favorites": {
|
||||||
|
"tracks": 0
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"actorId": "string",
|
"actorId": "string",
|
||||||
"private": true,
|
"private": true,
|
||||||
"shortDescription": "string",
|
"shortDescription": "string",
|
||||||
"longDescription": "string",
|
"longDescription": "string",
|
||||||
"rules": "string",
|
|
||||||
"contactEmail": "user@example.com",
|
"contactEmail": "user@example.com",
|
||||||
"terms": "string",
|
|
||||||
"nodeName": "string",
|
"nodeName": "string",
|
||||||
"banner": "string",
|
"banner": "string",
|
||||||
"defaultUploadQuota": 0,
|
"defaultUploadQuota": 0,
|
||||||
|
|
|
@ -444,6 +444,18 @@ components:
|
||||||
localComments:
|
localComments:
|
||||||
type: integer
|
type: integer
|
||||||
minimum: 0
|
minimum: 0
|
||||||
|
listenings:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
|
downloads:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
|
favorites:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
tracks:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -456,13 +468,9 @@ components:
|
||||||
type: string
|
type: string
|
||||||
longDescription:
|
longDescription:
|
||||||
type: string
|
type: string
|
||||||
rules:
|
|
||||||
type: string
|
|
||||||
contactEmail:
|
contactEmail:
|
||||||
type: string
|
type: string
|
||||||
format: email
|
format: email
|
||||||
terms:
|
|
||||||
type: string
|
|
||||||
nodeName:
|
nodeName:
|
||||||
type: string
|
type: string
|
||||||
banner:
|
banner:
|
||||||
|
|
Ładowanie…
Reference in New Issue