Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for vnd (0.02 sec)

  1. tests/test_additional_responses_custom_validationerror.py

    from fastapi.responses import JSONResponse
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class JsonApiResponse(JSONResponse):
        media_type = "application/vnd.api+json"
    
    
    class Error(BaseModel):
        status: str
        title: str
    
    
    class JsonApiError(BaseModel):
        errors: typing.List[Error]
    
    
    @app.get(
        "/a/{id}",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. tests/test_request_body_parameters_media_type.py

    import typing
    
    from fastapi import Body, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    media_type = "application/vnd.api+json"
    
    
    # NOTE: These are not valid JSON:API resources
    # but they are fine for testing requestBody with custom media_type
    class Product(BaseModel):
        name: str
        price: float
    
    
    class Shop(BaseModel):
        name: str
    
    
    @app.post("/products")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/net/MediaType.java

          createConstant(APPLICATION_TYPE, "vnd.apple.pkpass");
    
      /**
       * <a href="http://en.wikipedia.org/wiki/Embedded_OpenType">Embedded OpenType</a> fonts. This is
       * <a href="http://www.iana.org/assignments/media-types/application/vnd.ms-fontobject">registered
       * </a> with the IANA.
       *
       * @since 17.0
       */
      public static final MediaType EOT = createConstant(APPLICATION_TYPE, "vnd.ms-fontobject");
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  4. tests/test_additional_responses_response_class.py

    from fastapi.responses import JSONResponse
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class JsonApiResponse(JSONResponse):
        media_type = "application/vnd.api+json"
    
    
    class Error(BaseModel):
        status: str
        title: str
    
    
    class JsonApiError(BaseModel):
        errors: typing.List[Error]
    
    
    @app.get(
        "/a",
        response_class=JsonApiResponse,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. src/main/resources/fess_config.properties

    text/html=html\n\
    application/msword=word\n\
    application/vnd.openxmlformats-officedocument.wordprocessingml.document=word\n\
    application/vnd.ms-excel=excel\n\
    application/vnd.ms-excel.sheet.2=excel\n\
    application/vnd.ms-excel.sheet.3=excel\n\
    application/vnd.ms-excel.sheet.4=excel\n\
    application/vnd.ms-excel.workspace.3=excel\n\
    application/vnd.ms-excel.workspace.4=excel\n\
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=excel\n\
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Tue Oct 01 14:13:38 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  6. tests/test_response_code_no_body.py

    from fastapi.responses import JSONResponse
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class JsonApiResponse(JSONResponse):
        media_type = "application/vnd.api+json"
    
    
    class Error(BaseModel):
        status: str
        title: str
    
    
    class JsonApiError(BaseModel):
        errors: typing.List[Error]
    
    
    @app.get(
        "/a",
        status_code=204,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. tests/test_response_class_no_mediatype.py

    from fastapi.responses import JSONResponse
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class JsonApiResponse(JSONResponse):
        media_type = "application/vnd.api+json"
    
    
    class Error(BaseModel):
        status: str
        title: str
    
    
    class JsonApiError(BaseModel):
        errors: typing.List[Error]
    
    
    @app.get(
        "/a",
        response_class=Response,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt

            .url("https://api.github.com/repos/square/okhttp/issues")
            .header("User-Agent", "OkHttp Headers.java")
            .addHeader("Accept", "application/json; q=0.5")
            .addHeader("Accept", "application/vnd.github.v3+json")
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                    response.setContentType("text/css");
                } else if (lowerPath.endsWith(".eot")) {
                    response.setContentType("application/vnd.ms-fontobject");
                } else if (lowerPath.endsWith(".ico")) {
                    response.setContentType("image/vnd.microsoft.icon");
                } else if (lowerPath.endsWith(".js")) {
                    response.setContentType("text/javascript");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Aug 15 08:29:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  10. docs/en/docs/js/custom.js

    async function getDataBatch(page) {
        const response = await fetch(`https://api.github.com/search/repositories?q=topic:fastapi&per_page=100&page=${page}`, { headers: { Accept: 'application/vnd.github.mercy-preview+json' } })
        const data = await response.json()
        return data
    }
    
    async function getData() {
        let page = 1
        let data = []
        let dataBatch = await getDataBatch(page)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top