when I create a plumber api outside Rstudio...is there any way of getting the nice swagger-like html page with all the api info when pointing to the api URL?
I develop this project using VScode (business constraints..)
The usual URLs:
http://127.0.01:8000
http://127.0.0.1:8000/__docs__/
both says 404 not found
using Rstudio the swagger page url is:
http://127.0.0.1:8000/__docs__
and shows:
http://127.0.0.1:8000/openapi.json
But I assume this is a Rstudio feature. is there any way opf getting such info page in browser?
The rest of endpoints seems to work ok
meztez
April 21, 2021, 2:00pm
2
This is unrelated to RStudio, you should be able to access the docs if you unable it in your run call.
Start a server using plumber object — pr_run • plumber (rplumber.io)
something like pr_run(host = "127.0.0.1", port=8000, docs = TRUE)
The only thing happening in RStudio is the callback function that opens the docs each time you run the API.
See getOption("plumber.docs.callback")
1 Like
system
Closed
April 28, 2021, 2:01pm
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.