[ 
https://issues.apache.org/jira/browse/SPARK-23236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16341724#comment-16341724
 ] 

Alex Bozarth commented on SPARK-23236:
--------------------------------------

So IIUC, you want

1. /api and /api/v1 to give the same results (a redirect) as 
/api/v1/applications

2. You want /api/v1/applications/\{app-id} to include a list of rest api end 
points

3. You want UI pages to include links to the rest api calls that they get their 
info from

Based on that I'm on the fence about #1, it may be ok, but I'm not sure if it's 
best. As for #2 I'm not sure how you're envisioning it, but it seems like a bad 
idea in mu head. And for #3, I would be ok with this, but again I'm not sure 
how its useful.

> Make it easier to find the rest API, especially in local mode
> -------------------------------------------------------------
>
>                 Key: SPARK-23236
>                 URL: https://issues.apache.org/jira/browse/SPARK-23236
>             Project: Spark
>          Issue Type: Improvement
>          Components: Web UI
>    Affects Versions: 2.3.0
>            Reporter: Imran Rashid
>            Priority: Trivial
>              Labels: newbie
>
> This is really minor, but it always takes me a little bit to figure out how 
> to get from the UI to the rest api.  Its especially a pain in local-mode, 
> where you need the app-id, though in general I don't know the app-id, so have 
> to either look in logs or go to another endpoint first in the ui just to find 
> the app-id.  While it wouldn't really help anybody accessing the endpoints 
> programmatically, we could make it easier for someone doing exploration via 
> their browser.
> Some things which could be improved:
> * /api/v1 just provides a link to "/api/v1/applications"
> * /api provides a link to "/api/v1/applications"
> * /api/v1/applications/[app-id] gives a list of links for the other endpoints
> * on the UI, there is a link to at least /api/v1/applications/[app-id] -- 
> better still if each UI page links to the corresponding endpoint, eg. the all 
> jobs page would link to /api/v1/applications/[app-id]/jobs



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to