Skip to content

clnrest: dynamic content-type and accept headers #7164

Open
@ShahanaFarooqui

Description

@ShahanaFarooqui

Make the type of REST responses configurable via Accept header, so that applications can consume the response without writing wrappers/interceptors; if they do not consume default application/json type.

And

Make the payload of REST request configurable via Content-Type header, so that the server can consume the payload in different formats and convert it into json before passing it to the node.

Request Header Meaning:
-H Accept -> "I prefer to receive responses in {} format"
-H Content-Type -> "The data I'm sending is in {} format"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status::BacklogThe issue has been accepted but awaiting prioritization or scheduling.Type::EnhancementAimed at improving the existing functionality or a new feature that provides additional valueplugin::clnrest

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions