Skip to content

Icons for HTTP operations #44

@tiangolo

Description

@tiangolo

This is mainly opinionatedness, but it has happened a couple of times to me that I see the 🗑️ icon before a DELETE path operation / endpoint and I feel that if I click it, it will delete something.

Same with the ✏️ for PATCH (I feel that will edit) and + for POST (I feel that will add something to git).

I also understand why the icons there and the intention, but as I keep confusing them for action buttons, I wonder if we should remove them or change them.

Also, I see that visually I can recognize each HTTP operation by the name, nice that they are grouped (all GET together).

Maybe we could also use some colors to differentiate them, similar to how they show up in Swagger UI, e.g. like these colors.

Image

...probably a softer shade. But that might give the idea of the intent of the endpoint, similar to what the icons intend, without accidentally making it feel like it's gonna execute some action on click.

Metadata

Metadata

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