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

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

For #1, a REST API endpoint shouldn't return html, but we could return a custom 
html response (such as 405 or another response code) that includes a short 
"maybe you meant..." description.

For #2 I would be ok with a "maybe you meant..." response but with a link to 
the Spark REST API Doc to aid the user.

> 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