- Sort Score
- Result 10 results
- Languages All
Results 571 - 580 of 940 for modal (0.04 sec)
-
fastapi/security/base.py
from fastapi.openapi.models import SecurityBase as SecurityBaseModel class SecurityBase: model: SecurityBaseModel
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Dec 07 15:12:16 UTC 2018 - 141 bytes - Viewed (0) -
fastapi/openapi/constants.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 153 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) -
docs_src/events/tutorial003.py
from fastapi import FastAPI def fake_answer_to_everything_ml_model(x: float): return x * 42 ml_models = {} @asynccontextmanager async def lifespan(app: FastAPI): # Load the ML model ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model yield # Clean up the ML models and release the resources ml_models.clear() app = FastAPI(lifespan=lifespan)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 07 15:46:00 UTC 2023 - 569 bytes - Viewed (0) -
compat/maven-model-builder/src/test/resources/poms/inheritance/no-append-urls2-parent.xml
child.project.url.inherit.append.path="false"> <modelVersion>4.0.0</modelVersion> <groupId>inheritance</groupId> <artifactId>parent</artifactId> <version>11-SNAPSHOT</version> <name>Model urls inheritance test parent, with special merge test for mergeSite_ChildSiteUrlInheritAppendPath</name> <scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false"
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/test/resources/poms/inheritance/no-append-urls3-expected.xml
<artifactId>parent</artifactId> <version>11-SNAPSHOT</version> </parent> <groupId>inheritance</groupId> <artifactId>inheritance</artifactId> <version>11-SNAPSHOT</version> <name>Model urls inheritance test child</name> <scm child.scm.connection.inherit.append.path="true" child.scm.developerConnection.inherit.append.path="true" child.scm.url.inherit.append.path="true">
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.9K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.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.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; import java.util.List;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
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) -
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)