product:routes

Show all HTTP routes registered by the active product, with feature attribution.


Table of contents

  1. Usage
  2. Options
  3. Example output
    1. Flat table (default)
    2. Grouped by feature
    3. Filtered by feature
  4. How it works
  5. Requirements
  6. See also

Usage

splent product:routes [--feature <name>] [--group]

Options

Option Description
--feature <name> Show only routes registered by this feature. Accepts short (auth) or full name (splent_feature_auth).
--group Group routes by feature with route counts.

Example output

Flat table (default)

splent product:routes
  my_first_app  [dev]  4 feature(s)  16 route(s)

  ROUTE                                      METHOD  FEATURE                 ENDPOINT
  ─────────────────────────────────────────────────────────────────────────────────────
  /                                          GET     splent_feature_public   public.index
  /login                                     GET     splent_feature_auth     auth.login
  /login                                     POST    splent_feature_auth     auth.login
  /logout                                    GET     splent_feature_auth     auth.logout
  /notes                                     GET     splent_feature_notes    notes.index
  /profile/edit                              GET     splent_feature_profile  profile.edit_profile
  /static/<path:filename>                    GET     (flask)                 static

Grouped by feature

splent product:routes --group
  my_first_app  [dev]

  splent_feature_auth  (5 routes)
    GET    /login
    POST   /login
    GET    /logout
    GET    /signup/
    POST   /signup/

  splent_feature_notes  (4 routes)
    GET    /notes
    GET    /notes/create
    POST   /notes/create

  splent_feature_public  (2 routes)
    GET    /

Filtered by feature

splent product:routes --feature auth

Shows only the routes registered by splent_feature_auth.


How it works

During Flask startup, the FeatureIntegrator traces which feature registers each blueprint. This mapping is stored in app.extensions['splent_blueprint_trace']. The command boots the application and reads this trace to attribute every route to its source feature.


Requirements

  • A product must be selected (splent product:select).

See also


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es