Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 566 for Model2 (3.68 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. docs/pt/docs/project-generation.md

    # Geração de Projetos - Modelo
    
    Você pode usar um gerador de projetos para começar, por já incluir configurações iniciais, segurança, banco de dados e os primeiros _endpoints_ API já feitos para você.
    
    Um gerador de projetos sempre terá uma pré-configuração que você pode atualizar e adaptar para suas próprias necessidades, mas pode ser um bom ponto de partida para seu projeto.
    
    ## Full Stack FastAPI PostgreSQL
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/DependencyScope.java

     * For a given dependency, the scope is directly derived from the
     * {@link org.apache.maven.api.model.Dependency#getScope()} and will be used when using {@link PathScope}
     * and the {@link org.apache.maven.api.services.DependencyResolver}.
     *
     * @since 4.0.0
     * @see org.apache.maven.api.model.Dependency#getScope()
     * @see org.apache.maven.api.services.DependencyResolver
     */
    @Experimental
    @Immutable
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.buildutils.tasks
    
    import gradlebuild.buildutils.model.ReleasedVersion
    import gradlebuild.buildutils.model.ReleasedVersions
    import spock.lang.Specification
    
    import java.text.SimpleDateFormat
    
    import static java.util.concurrent.TimeUnit.DAYS
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.4K bytes
    - Viewed (0)
  10. api/maven-api-core/pom.xml

        <dependency>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-api-meta</artifactId>
        </dependency>
        <dependency>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-api-model</artifactId>
        </dependency>
        <dependency>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-api-settings</artifactId>
        </dependency>
        <dependency>
          <groupId>org.apache.maven</groupId>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Oct 19 18:11:20 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top