Skip to content

API: presence or lack of trailing slash changes the behavior of endpoints #1185

@LunarEclipse363

Description

@LunarEclipse363

Current behavior

Making a PATCH request to https://desec.io/api/v1/domains/$DOMAIN/rrsets returns status code 400 with response {'non_field_errors': ['No data provided']}.

Making the same request to https://desec.io/api/v1/domains/$DOMAIN/rrsets/ works as expected.

Expected behavior

I would expect the presence of the trailing slash to be irrelevant to the behavior of the API

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions