Вопрос

I am implementing API calls that are used to delete data in 2 ways via DELETE and GET requests:

@url DELETE /{id}
@url GET /delete/{id}


Is there a way to make the Swagger to color in red the GET request too?
They are used for same purpose - to delete data so it is natural.
This way it will be very intuitive for the API user!
Currently only DELETE requests are in red.


Thanks for your time!

Это было полезно?

Решение

Colours are for the request methods so it should be left as it is. Your description should do the explaining

GET /deltete/{id}

is not the RESTful way

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top