I have discovered, that I had exactly same problem as here
500 Error when setting up Swagger in asp .net CORE / MVC 6 app
As it is explained at that topic, it is possible to get exact explanation, what "Internal server error" means in the debugger console (of Chrome, for example). My problem came from outside, I forgot to write [HttpGet] to another controller.