Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Question: Reuse requests #86

Open
pintomau opened this issue Nov 3, 2021 · 2 comments
Open

Question: Reuse requests #86

pintomau opened this issue Nov 3, 2021 · 2 comments

Comments

@pintomau
Copy link

pintomau commented Nov 3, 2021

Hi.

Is there a way one could reuse a file, containing common requests (say authentication, clean up...), to avoid duplicating requests all over files?

Thank you.

@quangson91
Copy link
Collaborator

@pintomau Currently, restcli doesn't support reuse the requests yet.
But this is a good idea. I will keep this issue then consider to implement in the future.

@berndbrot
Copy link

I would also love to see this implemented. Something like a #include filename.http would be great:

#include createTestUserAndLogIn.http

### Execute the actual tests

#include cleanupTestUser.http

This would probably also require a feature request towards JetBrains, right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants