No description
Find a file
Joas Schilling 207861e322
Merge pull request #35 from nextcloud/nickvergessen-patch-1
Fix API endpoint and update curl example
2026-01-03 12:08:03 +01:00
.github/workflows ci: update reuse.yml workflow from template 2025-06-27 10:13:54 +00:00
appinfo Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00
css Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00
img Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00
js Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00
lib Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00
LICENSES ci(reuse): Add reuse check 2024-11-17 19:55:08 +01:00
templates Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00
tests Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00
.scrutinizer.yml enable travis and scrutinizer 2016-07-08 16:53:21 +02:00
.travis.yml update php version for unit tests 2018-08-03 21:48:01 +02:00
AUTHORS.md skelleton 2015-07-09 12:22:40 +02:00
CHANGELOG.md Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00
data.json Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00
LICENSE Initial commit 2015-07-09 11:53:54 +02:00
Makefile skelleton 2015-07-09 12:22:40 +02:00
phpunit.integration.xml skelleton 2015-07-09 12:22:40 +02:00
phpunit.xml skelleton 2015-07-09 12:22:40 +02:00
README.md Fix grammar in README.md 2026-01-03 12:07:35 +01:00
REUSE.toml Survey Reloaded (#31) 2024-09-26 10:51:53 +02:00

Survey Server

REUSE status

This is the survey server app. It collects anonymised data send by other Nextcloud installations, evaluates and visualize them.

Data needs to be send to ocs/v2.php/apps/survey_server/api/v1/survey The data set has to be JSON encoded and needs to look like:

{
    "id": <id_computed_by_sender>,
    "items": [
        [
            "server",
            "version",
            "25.0.1.1"
        ],
        [
            "apps",
            <appId>,
            <appVersion>
        ],
        [
            "database",
            "type",
            "pgsql"
        ],
    ]
}

The id needs to be the same every time the Nextcloud server sends an update of its data so that the survey server can detect duplicates.

At the moment the survey server supports the values shown in the JSON example above but the client can send any data it wish, in the feature the server will be able to evaluate more data.

For testing purpose you can use curl to send some dummy values to the server:

curl --data "data={\"id\" : \"randomID_454354\", \"items\" : [[\"server\", \"version\", \"25.0.1.1\" ], [\"database\", \"type\", \"pgsql\" ], [\"apps\", \"files_sharing\", \"1.17.0\" ], [\"stats\", \"num_users\", 2], [\"stats\", \"num_files\", 7], [\"encryption\", \"enabled\" , \"no\"]]}" https://localhost/ocs/v2.php/apps/survey_server/api/v1/survey

Contribute

All contributions beginning from July, 8 2016 are considered to be licensed under the "AGPLv3 or any later version".