Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Allow requests with the same name (but different HTTP methods) #3502

Open
1 task done
SergiyKolesnikov opened this issue Nov 18, 2024 · 2 comments
Open
1 task done
Labels
enhancement New feature or request mid-term-goal Mid Term Goal module-qol

Comments

@SergiyKolesnikov
Copy link

SergiyKolesnikov commented Nov 18, 2024

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

For REST resources that support multiple HTTP methods, it may be convenient and more readable to give the requests the same name (e.g., the name of the resource). The requests can still be differentiated by the corresponding method.

Implementing this feature will also make it easier to import collections from other API clients that have this feature too. As described in the issue #799.

Bruno stores requests in .bru files having the same name as the requests. To prevent name collisions the names of these files can be prefixed with the corresponding HTTP methods. I tried prefixing files like that by hand and it worked as can be seen in the screenshot.

Mockups or Images of the feature

image

image
@SergiyKolesnikov SergiyKolesnikov added the enhancement New feature or request label Nov 18, 2024
@crestoff
Copy link

@SergiyKolesnikov great idea!

@Susccy
Copy link

Susccy commented Nov 21, 2024

I second this. Unique request names make sense, but only if the name is calculated as a combination of method type + name.

So having

  • GET method
  • POST method

should be allowed, but

  • POST method
  • POST method

should not be allowed.

@SergiyKolesnikov SergiyKolesnikov changed the title Allow requests with the same name Allow requests with the same name (but different HTTP methods) Nov 21, 2024
@sreelakshmi-bruno sreelakshmi-bruno added the mid-term-goal Mid Term Goal label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mid-term-goal Mid Term Goal module-qol
Projects
None yet
Development

No branches or pull requests

4 participants