Class ApiRootAction.QuestionEndpoint

java.lang.Object
io.jenkins.plugins.interactiveinput.rest.ApiRootAction.QuestionEndpoint
Enclosing class:
ApiRootAction

public static class ApiRootAction.QuestionEndpoint extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.kohsuke.stapler.HttpResponse
    POST /questions/{id}/abort — cancel the input (delivers an abort to the pipeline).
    org.kohsuke.stapler.HttpResponse
    doAnswer(org.kohsuke.stapler.StaplerRequest2 req)
    POST /questions/{id}/answer — submit an answer.
    org.kohsuke.stapler.HttpResponse
    GET /questions/{id} — detail.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QuestionEndpoint

      public QuestionEndpoint(String id)
  • Method Details

    • doIndex

      @GET public org.kohsuke.stapler.HttpResponse doIndex()
      GET /questions/{id} — detail. 404 if not found or not readable (avoids existence leak).
    • doAnswer

      public org.kohsuke.stapler.HttpResponse doAnswer(org.kohsuke.stapler.StaplerRequest2 req)
      POST /questions/{id}/answer — submit an answer.
    • doAbort

      public org.kohsuke.stapler.HttpResponse doAbort()
      POST /questions/{id}/abort — cancel the input (delivers an abort to the pipeline).