#routes #next-cloud #extractor #app #path #postfix

bin+lib nextcloud-route-extractor

Extract routes from nextcloud apps

3 releases

Uses new Rust 2024

0.1.2 Aug 23, 2025
0.1.1 Aug 20, 2025
0.1.0 Aug 18, 2025

#1054 in Web programming

EUPL-1.2

20KB
502 lines

nextcloud-route-extractor

Extract routes from nextcloud apps

Usage

nextcloud-route-extractor /path/to/nextcloud/apps/myapp

Output

{
  "routes": [
    {
      "root": "",
      "url": "/config",
      "name": "settings#getConfig",
      "verb": "GET",
      "requirements": {},
      "postfix": null,
      "defaults": {}
    },
    ...
  ],
  "ocs": [
    {
      "root": "",
      "url": "/api/v1/foo/{id}",
      "name": "Foo#get",
      "verb": "GET",
      "requirements": {},
      "postfix": null,
      "defaults": {}
    },
    ...
  ]
}

See the Nextcloud documentation for the meaning of the various route parameters.

Dependencies

~28MB
~612K SLoC