Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Allow actions with custom URLs to use parameters from parent resource #452

Closed
alexkreidler opened this issue Dec 16, 2019 · 1 comment
Closed

Comments

@alexkreidler
Copy link

I have the following API Blueprint:

## Run Information [/processors/{id}/runs/{runID}]
Provides information about all the Runs on a given processor.

+ Parameters
    + id (string) - The processor ID
    + runID (string) - The run ID


### Retrieve One Run [GET]
+ Response 200 (application/json)
    + Attributes (Run)


### Configure [POST /processors/{id}/runs/{runID}/configure]
+ Response 200 (application/json)
    + Attributes (Run)

I want the Parameters from my "Run Information" ResourceGroup to cascade down to my Configure action, but instead, I get this:

image

So I need to add the + Parameters section to the Action itself, causing duplication.

Additionally, if we were able to use relative URIs (#451), then I wouldn't even have to write /processors/{id}/runs/{runID}/configure, I'd just write ./configure. Once this Parameters cascade issue is fixed, then it'd be super easy to add new actions without duplicating anything.

@kylef
Copy link
Member

kylef commented Sep 28, 2020

I think this is a bug in Aglio, you may want to file a bug with that software instead.

Other reference documentation renderers offer this:

2020-09-28-120846_733x630_scrot

@kylef kylef closed this as completed Sep 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants