Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Not sending body with RestTemplate DELETE #37

Description

@steviemo

Hey we are creating an exchange DELETE request with object entity as the body of the request however no body is being received by our API server side:

final HttpHeaders headers = new HttpHeaders();
restTemplate.exchange(
                "/api/example",
                HttpMethod.DELETE,
                new HttpEntity<>(entity, headers),
                Void.class);

This works ok with RestTemplate in main spring project - has this functionality been missed for android RestTemplate?
Thanks,
Stephen

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions