Mercurial > hg > orthanc
comparison OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp @ 4404:f34634916d8c
cont openapi
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Dec 2020 08:59:45 +0100 |
parents | ad646ff506d0 |
children | 5466f336b09f |
comparison
equal
deleted
inserted
replaced
4403:ad646ff506d0 | 4404:f34634916d8c |
---|---|
101 return *this; | 101 return *this; |
102 } | 102 } |
103 | 103 |
104 | 104 |
105 RestApiCallDocumentation& RestApiCallDocumentation::SetUriArgument(const std::string& name, | 105 RestApiCallDocumentation& RestApiCallDocumentation::SetUriArgument(const std::string& name, |
106 Type type, | 106 const std::string& description) |
107 const std::string& description) | |
108 { | 107 { |
109 if (uriArguments_.find(name) != uriArguments_.end()) | 108 if (uriArguments_.find(name) != uriArguments_.end()) |
110 { | 109 { |
111 throw OrthancException(ErrorCode_ParameterOutOfRange, "URI argument \"" + name + "\" is already documented"); | 110 throw OrthancException(ErrorCode_ParameterOutOfRange, "URI argument \"" + name + "\" is already documented"); |
112 } | 111 } |
113 else | 112 else |
114 { | 113 { |
115 uriArguments_[name] = Parameter(type, description, true); | 114 uriArguments_[name] = Parameter(Type_String, description, true); |
116 return *this; | 115 return *this; |
117 } | 116 } |
118 } | 117 } |
119 | 118 |
120 | 119 |