Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

/unwrap rendering in json possible? #246

Open
connaryscott opened this issue Mar 22, 2018 · 0 comments
Open

/unwrap rendering in json possible? #246

connaryscott opened this issue Mar 22, 2018 · 0 comments

Comments

@connaryscott
Copy link

connaryscott commented Mar 22, 2018

When I wrap a secret I get this url:

http://10.147.3.69:8000/unwrap?token=7d160ab0-c352-2574-a5bd-829f8ba0ea5a&vaultUrl=https://vault:8200

I try to curl this url (NO BROWSER HERE) and I get this:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Vault-UI</title>
        <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600" rel="stylesheet">
        <link href="/dist/styles.css" rel="stylesheet">
        <link rel="shortcut icon" href="/dist/favicon.ico" type="image/x-icon">
        <style type="text/css">
            body {
                font-family: 'Source Sans Pro', sans-serif;
                margin: 0;
            }
        </style>
    </head>
    <body>
        <div id="app"></div>
        <script src="/dist/web-bundle.js"></script>
    </body>
</html>

which works in a browser and we get table format.

Is there a way to render json format so that a browser is not needed at all? Just want the data using simple curl or at least a way to render it in json within the browser if possible.

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

1 participant