nextcloud-route-extractor 0.1.2

Extract routes from nextcloud apps
Documentation

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.