Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 435 for json (0.19 sec)

  1. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an_py39.py

                    },
                ]
            }
        )
    
    
    @needs_py39
    def test_post_body_json(client: TestClient):
        response = client.post("/files/", json={"file": "Foo", "token": "Bar"})
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.9K 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. internal/grid/types.go

    	*t = zero
    	return t
    }
    
    // JSON is a wrapper around a T object that can be serialized.
    // There is an internal value
    type JSON[T any] struct {
    	p   *JSONPool[T]
    	val *T
    }
    
    // NewJSON returns a new JSONPool.
    // No initial value is set.
    func (p *JSONPool[T]) NewJSON() *JSON[T] {
    	var j JSON[T]
    	j.p = p
    	return &j
    }
    
    // NewJSONWith returns a new JSON with the provided value.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. internal/event/target/elasticsearch.go

    	Enable     bool            `json:"enable"`
    	Format     string          `json:"format"`
    	URL        xnet.URL        `json:"url"`
    	Index      string          `json:"index"`
    	QueueDir   string          `json:"queueDir"`
    	QueueLimit uint64          `json:"queueLimit"`
    	Transport  *http.Transport `json:"-"`
    	Username   string          `json:"username"`
    	Password   string          `json:"password"`
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/first-steps.md

    Falls Sie wissen möchten, wie das rohe OpenAPI-Schema aussieht: FastAPI generiert automatisch ein JSON (Schema) mit den Beschreibungen Ihrer gesamten API.
    
    Sie können es direkt einsehen unter: <a href="http://127.0.0.1:8000/openapi.json" class="external-link" target="_blank">http://127.0.0.1:8000/openapi.json</a>.
    
    Es wird ein JSON angezeigt, welches ungefähr so aussieht:
    
    ```JSON
    {
        "openapi": "3.1.0",
        "info": {
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:16:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. tests/test_security_oauth2_optional.py

        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Bearer footokenbar"}
    
    
    def test_security_oauth2_password_other_header():
        response = client.get("/users/me", headers={"Authorization": "Other footokenbar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "Other footokenbar"}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  9. docs/tr/docs/features.md

    * Otomatik olarak data modelinin <a href="http://json-schema.org/" class="external-link" target="_blank"><strong>JSON Schema</strong></a> ile beraber dokümante edilmesi (OpenAPI'n kendisi zaten JSON Schema'ya dayanıyor).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  10. cmd/bucket-replication-metrics.go

    // XferStats has transfer stats for replication
    type XferStats struct {
    	Curr    float64          `json:"currRate" msg:"cr"`
    	Avg     float64          `json:"avgRate" msg:"av"`
    	Peak    float64          `json:"peakRate" msg:"p"`
    	N       int64            `json:"n" msg:"n"`
    	measure *rateMeasurement `json:"-"`
    	sma     *SMA             `json:"-"`
    }
    
    // Clone returns a copy of XferStats
    func (rx *XferStats) Clone() *XferStats {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
Back to top