Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

larecipe-code-viewer method POST does not support "body" or "postData" parameter #362

Open
ArthurCalazans opened this issue Aug 21, 2024 · 0 comments

Comments

@ArthurCalazans
Copy link

Describe the bug
I am currently working on a documentation using LaRecipe, and I've encountered an issue when trying to document a POST request with the larecipe-code-viewer component.

The issue is that there seems to be no way to pass the request body data (body or postData) into the larecipe-code-viewer component when using the POST method.

Expected behavior
The component should render the curl command with the correct body data included in the request.

Actual Behavior
The larecipe-code-viewer does not seem to recognize the body or postData parameter, resulting in a generated curl command that lacks the necessary data for the POST request.

Screenshots
image

<larecipe-code-viewer 
    method="POST" 
    url="test" 
    baseUrl="https://localhost/" 
    :body="{
        'testing_id': '1',
        'test': 'testing'
    }" 
    :headers="[
        {
            'name': 'apikey',
            'value': 'your-api-key-here'
        }
    ]">
</larecipe-code-viewer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant