- Sort Score
- Result 10 results
- Languages All
Results 541 - 550 of 1,041 for model (0.03 sec)
-
docs/en/docs/advanced/response-change-status-code.md
```Python hl_lines="1 9 12" {!../../docs_src/response_change_status_code/tutorial001.py!} ``` And then you can return any object you need, as you normally would (a `dict`, a database model, etc). And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.5K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ExtensionBlocksSummaryRenderer.java
* See the License for the specific language governing permissions and * limitations under the License. */ package gradlebuild.docs.dsl.docbook; import gradlebuild.docs.dsl.docbook.model.ClassExtensionDoc; import org.w3c.dom.Document; import org.w3c.dom.Element; public class ExtensionBlocksSummaryRenderer { private final BlockTableRenderer blockTableRenderer;
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 2.6K bytes - Viewed (0) -
docs/zh/docs/advanced/additional-responses.md
# OPENAPI 中的其他响应 您可以声明附加响应,包括附加状态代码、媒体类型、描述等。 这些额外的响应将包含在OpenAPI模式中,因此它们也将出现在API文档中。 但是对于那些额外的响应,你必须确保你直接返回一个像 `JSONResponse` 一样的 `Response` ,并包含你的状态代码和内容。 ## `model`附加响应 您可以向路径操作装饰器传递参数 `responses` 。 它接收一个 `dict`,键是每个响应的状态代码(如`200`),值是包含每个响应信息的其他 `dict`。 每个响应字典都可以有一个关键模型,其中包含一个 `Pydantic` 模型,就像 `response_model` 一样。 **FastAPI**将采用该模型,生成其`JSON Schema`并将其包含在`OpenAPI`中的正确位置。 例如,要声明另一个具有状态码 `404` 和`Pydantic`模型 `Message` 的响应,可以写:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java
package org.apache.maven.toolchain; import javax.inject.Named; import javax.inject.Singleton; import java.io.File; import java.io.InputStream; import java.nio.file.Files; import org.apache.maven.toolchain.model.PersistedToolchains; import org.apache.maven.toolchain.v4.MavenToolchainsStaxReader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K bytes - Viewed (0) -
compat/maven-model-builder/src/test/resources/poms/inheritance/tricky-flat-directory-urls-parent.xml
<modelVersion>4.0.0</modelVersion> <groupId>inheritance</groupId> <artifactId>parent</artifactId> <version>11-SNAPSHOT</version> <name>Model urls inheritance test parent</name> <description>Flat directory structure case: module = ../child directory path + child directory path != child-artifact-id</description> <modules>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.8K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultPathTranslator.java
* KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.model.path; import javax.inject.Named; import javax.inject.Singleton; import java.io.File; import java.nio.file.Path; /** * Resolves relative paths against a specific base directory. *
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K bytes - Viewed (0) -
istioctl/pkg/version/version.go
"github.com/spf13/pflag" "google.golang.org/protobuf/types/known/structpb" "istio.io/istio/istioctl/pkg/cli" "istio.io/istio/istioctl/pkg/clioptions" "istio.io/istio/istioctl/pkg/multixds" "istio.io/istio/pilot/pkg/model" "istio.io/istio/pilot/pkg/xds" "istio.io/istio/pkg/proxy" istioVersion "istio.io/istio/pkg/version" ) func NewVersionCommand(ctx cli.Context) *cobra.Command { var opts clioptions.ControlPlaneOptions
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 29 21:11:35 UTC 2024 - 8.3K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileModelSourceTest.java
* KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.model.building; import java.io.File; import java.io.IOException; import org.codehaus.plexus.util.Os; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertFalse;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.4K bytes - Viewed (0) -
compat/maven-model-builder/src/test/resources/poms/inheritance/tricky-flat-artifactId-urls-expected.xml
<artifactId>parent</artifactId> <version>11-SNAPSHOT</version> </parent> <groupId>inheritance</groupId> <artifactId>child-artifact-id</artifactId> <version>11-SNAPSHOT</version> <name>Model urls inheritance test child</name> <description>Flat directory structure case: module = ../child-artifact-id + child directory path != child-artifact-id</description>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
compat/maven-model-builder/src/test/resources/poms/inheritance/urls-expected.xml
<artifactId>parent</artifactId> <version>11-SNAPSHOT</version> </parent> <groupId>inheritance</groupId> <artifactId>child-artifact-id</artifactId> <version>11-SNAPSHOT</version> <name>Model urls inheritance test child</name> <description>Most classical case: child in direct subdirectory with directory name == child artifactId</description> <!-- 5 inherited urls with ${project.artifactId} added to parent -->
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0)