danielgtaylor / aglio

An API Blueprint renderer with theme support that outputs static HTML
4.75k stars 480 forks source link

Condensed-nav tweaks for anonymous Resources #361

Open metacubed opened 5 years ago

metacubed commented 5 years ago

API Blueprint allows Resource sections to be anonymous, as described in the specification.

#### Definition
Defined by an [URI template][uritemplate]:

    # <URI template>

Current behavior

With this configuration, Aglio renders the left nav with the default label "Resource".

# Group QA

## /v1/tests

### Get tests [GET]
Get all tests

### Add test [POST]
Add a test

currently renders as:

QA
Resource
    Get tests
    Add test

Proposed change

With "condensed nav" enabled, Aglio could detect anonymous resources and move the Action labels to the primary position.

QA
Get tests
Add test

Without condensed nav, the current behavior would remain as-is.