Skip to content

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

Open
@ArthurCalazans

Description

@ArthurCalazans

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions