Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 435 for json (0.24 sec)

  1. docs/ko/docs/tutorial/schema-extra-example.md

    그리고 Pydantic 모델의 **JSON 스키마**는 API의 **OpenAPI**에 포함되고, 그 후 문서 UI 속에서 사용됩니다.
    
    FastAPI 0.99.0 이전 버전에서 (0.99.0 이상 버전은 새로운 OpenAPI 3.1.0을 사용합니다), `example` 혹은 `examples`를 다른 유틸리티(`Query()`, `Body()` 등)와 함께 사용했을 때, 저러한 예시는 데이터를 설명하는 JSON 스키마에 추가되지 않으며 (심지어 OpenAPI의 자체 JSON 스키마에도 포함되지 않습니다), OpenAPI의 *경로 작동* 선언에 직접적으로 추가됩니다 (JSON 스키마를 사용하는 OpenAPI 부분 외에도).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Feb 09 12:35:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_updates/test_tutorial001.py

        assert response.json() == {
            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    def test_put(client: TestClient):
        response = client.put(
            "/items/bar", json={"name": "Barz", "price": 3, "description": None}
        )
        assert response.json() == {
            "name": "Barz",
            "description": None,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body_updates/test_tutorial001_py310.py

        assert response.json() == {
            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    @needs_py310
    def test_put(client: TestClient):
        response = client.put(
            "/items/bar", json={"name": "Barz", "price": 3, "description": None}
        )
        assert response.json() == {
            "name": "Barz",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  4. cmd/bucket-replication-utils.go

    	// Total number of failed operations
    	FailedCount int64 `json:"failedReplicationCount"  msg:"frc"`
    	// Completed size in bytes
    	ReplicatedSize int64 `json:"completedReplicationSize"  msg:"rs"`
    	// Total number of failed operations
    	ReplicatedCount int64 `json:"replicationCount"  msg:"rrc"`
    	// Last bucket/object replicated.
    	Bucket string `json:"-" msg:"bkt"`
    	Object string `json:"-" msg:"obj"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 26.2K bytes
    - Viewed (0)
  5. cmd/admin-bucket-handlers.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"encoding/base64"
    	"encoding/json"
    	"encoding/xml"
    	"errors"
    	"fmt"
    	"io"
    	"net/http"
    	"strings"
    	"time"
    
    	jsoniter "github.com/json-iterator/go"
    	"github.com/klauspost/compress/zip"
    	"github.com/minio/kms-go/kes"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio-go/v7/pkg/tags"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  6. istioctl/pkg/admin/istiodconfig.go

    		outputFormat: outputFormat,
    	}}
    }
    
    type ScopeInfo struct {
    	Name            string `json:"name"`
    	Description     string `json:"description,omitempty"`
    	OutputLevel     string `json:"output_level,omitempty"`
    	StackTraceLevel string `json:"stack_trace_level,omitempty"`
    	LogCallers      bool   `json:"log_callers,omitempty"`
    }
    
    type ScopeLevelPair struct {
    	scope    string
    	logLevel string
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  7. docs/debugging/xl-meta/main.go

    						if err != nil {
    							return err
    						}
    						// Quote string...
    						b, _ := json.Marshal(file.Name)
    						b2, err := decode(r, file.Name)
    						if err != nil {
    							return err
    						}
    						var tmp map[string]interface{}
    						if err := json.Unmarshal(b2, &tmp); err == nil {
    							if b3, err := json.Marshal(tmp); err == nil {
    								b2 = b3
    							}
    						}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  8. tests/test_openapi_examples.py

                },
            },
        ),
    ):
        return item
    
    
    @app.get("/path_examples/{item_id}")
    def path_examples(
        item_id: str = Path(
            examples=[
                "json_schema_item_1",
                "json_schema_item_2",
            ],
            openapi_examples={
                "Path One": {
                    "summary": "Path One Summary",
                    "description": "Path One Description",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 17K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/handling-errors.md

    Если клиент запросит `http://example.com/items/foo` (`item_id` `"foo"`), то он получит статус-код 200 и ответ в формате JSON:
    
    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    Но если клиент запросит `http://example.com/items/bar` (несуществующий `item_id` `"bar"`), то он получит статус-код 404 (ошибка "не найдено") и JSON-ответ в виде:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    !!! tip "Подсказка"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

            } else if (value instanceof String[]) {
                final String json = Arrays.stream((String[]) value).map(s -> "\"" + StringEscapeUtils.escapeJson(s) + "\"")
                        .collect(Collectors.joining(","));
                buf.append('[').append(json).append(']');
            } else if (value instanceof List) {
                final String json = ((List<?>) value).stream().map(s -> "\"" + StringEscapeUtils.escapeJson(s.toString()) + "\"")
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 25.2K bytes
    - Viewed (0)
Back to top