Skip to content

How to handle response with absolute URLs #7

Open
@marcinmaruszewski

Description

@marcinmaruszewski

In my API the response contains an absolute URL. For example:

{
  "url": "https://staging.example.com/api/node/1"
}

and

{
  "url": "https://example.com/api/node/1"
}

Running the following command

api-diff \
 --new.host staging.example.com \
 --old.host example.com \
 --input_queries queries.txt \
 --output_mode html \
 -o report.html

Will tell me that there is a difference in API response. But as you can see the difference only occurs in the hostname. The reset /api/node/1 is the same.

Is there any flag to ignore host and ignore the occurrence of hostname in API response?

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