Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to handle response with absolute URLs #7

Open
marcinmaruszewski opened this issue Nov 19, 2021 · 0 comments
Open

How to handle response with absolute URLs #7

marcinmaruszewski opened this issue Nov 19, 2021 · 0 comments

Comments

@marcinmaruszewski
Copy link

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?

@marcinmaruszewski marcinmaruszewski changed the title How to haldne response with absolute urls How to handle response with absolute URLs Nov 21, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant