title: Swagger - add "path variable" in request url
body: <p>I'm using Swagger and I'm trying to add a custom path variable.</p>
  <p>One of my endpoint looks like:</p>
  <pre><code>http://localhost:8008/schools/{schoolId}/teachers/{teacherId}
  </code></pre>
  <p>Where my controller looks like:</p>
  <pre class="lang-java prettyprint-override"><code>{
      @RestController
      @RequiredArgsConstructor
      @RequestMapping(&quot;/schools/{schoolId}/teachers&quot;)
      public class TeacherController {
      
          private final TeacherRepository teacherRepository;
      
          @GetMapping(&quot;/{teacherId}&quot;)
          public Teacher get(@PathVariable Long teacherId) {
              return teacherRepository.findById(teacherId);
          }
  }
  </code></pre>
  <p><code>teacherId</code> is obviously <code>pathVariable</code>, so swagger can add a placeholder for it, but <code>schoolId</code> for swagger is not, so when I process any endpoint I get:</p>
  <pre><code>http://localhost:8008/schools/%7BschoolId%7D/teachers/{teacherId}
  </code></pre>
  <p>Is it possible to somehow replace this value in swagger? <code>schoolId</code> is used in filter to change the database automatically based on <code>schoolId</code> so I don't handle it in controller</p>