类 OperationBuilder
java.lang.Object
springfox.documentation.builders.OperationBuilder
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明authorizations(Collection<SecurityReference> securityReferences) Updates the security checks that apply to this operationbuild()codegenMethodNameStem(String codeGenMethodNameStem) This is an optional override that provides a custom method name stem, such that the method name that is generated for the purposes of code-gen can be customized.Updates the existing media types with new entries that this documentation consumesdeprecated(String deprecated) Marks the listing as deprecatedextensions(List<VendorExtension> extensions) Updates the operation extensionshidden(boolean isHidden) Marks the operation as hiddenmethod(org.springframework.http.HttpMethod method) Updates the http methodUpdates the operation notesparameters(List<Parameter> parameters) Updates the input parameters this operation needsposition(int position) Updates the index of the operationUpdates the existing media types with new entries that this documentation producesUpdate the protocols this operation supportsresponseMessages(Set<ResponseMessage> responseMessages) Updates the response messagesresponseModel(ModelReference responseType) Updates the reference to the response modelUpdates the operation summaryUpdates the tags that identify this operationUpdates the uniqueId for the operation.
-
构造器详细资料
-
OperationBuilder
-
-
方法详细资料
-
method
Updates the http method- 参数:
method- - http method, one of GET, POST, PUT etc.- 返回:
- this
-
summary
Updates the operation summary- 参数:
summary- - operation summary- 返回:
- this
-
notes
Updates the operation notes- 参数:
notes- - notes to describe the operation- 返回:
- this
-
uniqueId
Updates the uniqueId for the operation. This will be used to seed the unique id- 参数:
uniqueId- - uniqueId for the operation- 返回:
- this
-
codegenMethodNameStem
This is an optional override that provides a custom method name stem, such that the method name that is generated for the purposes of code-gen can be customized. However it must be kept in mind that in-order the guarantee uniqueness of the name for code-gen the algorithm will still try to append and indexer at the end of it e.g. someMethod_1, someMethod_2 etc. to preserve uniqueness in the case there are duplicate names.- 参数:
codeGenMethodNameStem- - provides a stem for the operation name as it will be used for code generation- 返回:
- this
-
position
Updates the index of the operation- 参数:
position- - position is used to sort the operation in a particular order- 返回:
- this
-
produces
Updates the existing media types with new entries that this documentation produces- 参数:
mediaTypes- - new media types- 返回:
- this
-
consumes
Updates the existing media types with new entries that this documentation consumes- 参数:
mediaTypes- - new media types- 返回:
- this
-
protocols
Update the protocols this operation supports- 参数:
protocols- - protocols- 返回:
- this
-
authorizations
Updates the security checks that apply to this operation- 参数:
securityReferences- - authorization that reference security definitions- 返回:
- this
-
parameters
Updates the input parameters this operation needs- 参数:
parameters- - input parameter definitions- 返回:
- this
-
responseMessages
Updates the response messages- 参数:
responseMessages- - new response messages to be merged with existing response messages- 返回:
- this
-
deprecated
Marks the listing as deprecated- 参数:
deprecated- - surely this had to be a boolean!! TODO!!- 返回:
- this
-
responseModel
Updates the reference to the response model- 参数:
responseType- = response type model reference- 返回:
- this
-
tags
Updates the tags that identify this operation- 参数:
tags- - new set of tags- 返回:
- this
-
extensions
Updates the operation extensions- 参数:
extensions- - operation extensions- 返回:
- this
-
build
-