Search Options

Results per page
Sort
Preferred Languages
Advance

Results 921 - 930 of 1,670 for ujson (0.02 sec)

  1. tests/test_param_class.py

        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == {"q": None}
    
    
    def test_default_param_query():
        response = client.get("/items/?q=foo")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 636 bytes
    - Viewed (0)
  2. internal/config/bool-flag.go

    package config
    
    import (
    	"encoding/json"
    	"fmt"
    	"strconv"
    	"strings"
    )
    
    // BoolFlag - wrapper bool type.
    type BoolFlag bool
    
    // String - returns string of BoolFlag.
    func (bf BoolFlag) String() string {
    	if bf {
    		return "on"
    	}
    
    	return "off"
    }
    
    // MarshalJSON - converts BoolFlag into JSON data.
    func (bf BoolFlag) MarshalJSON() ([]byte, error) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Apr 07 15:10:40 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_custom_response/test_tutorial002_tutorial003_tutorial004.py

        if mod_name.startswith("tutorial003"):
            response_content = {"application/json": {"schema": {}}}
        else:
            response_content = {"text/html": {"schema": {"type": "string"}}}
    
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  4. cmd/erasure-sets.go

    		}
    
    		// Reset for the next interval
    		timer.Reset(globalAPIConfig.getStaleUploadsCleanupInterval())
    	}
    }
    
    type auditObjectOp struct {
    	Name string `json:"name"`
    	Pool int    `json:"poolId"`
    	Set  int    `json:"setId"`
    }
    
    func (op auditObjectOp) String() string {
    	// Flatten the auditObjectOp
    	return fmt.Sprintf("name=%s,pool=%d,set=%d", op.Name, op.Pool, op.Set)
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37K bytes
    - Viewed (1)
  5. tests/test_file_and_form_order_issue_9116.py

            url=endpoint_path,
            data={"city": "Thimphou"},
            files={"file": (tmp_file_1.name, tmp_file_1.read_bytes())},
        )
        assert response.status_code == 200, response.text
        assert response.json() == {"file_content": "foo", "city": "Thimphou"}
    
    
    @pytest.mark.parametrize(
        "endpoint_path", ("/file_list_before_form", "/file_list_after_form")
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/openapi-callbacks.md

    ```
    
    with a JSON body of:
    
    ```JSON
    {
        "id": "2expen51ve",
        "customer": "Mr. Richie Rich",
        "total": "9999"
    }
    ```
    
    then *your API* will process the invoice, and at some point later, send a callback request to the `callback_url` (the *external API*):
    
    ```
    https://www.external.org/events/invoices/2expen51ve
    ```
    
    with a JSON body containing something like:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 8K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/openapi-callbacks.md

    ```
    https://www.external.org/events/invoices/2expen51ve
    ```
    
    com um corpo JSON contendo algo como:
    
    ```JSON
    {
        "description": "Payment celebration",
        "paid": true
    }
    ```
    
    e esperaria uma resposta daquela *API externa* com um corpo JSON como:
    
    ```JSON
    {
        "ok": true
    }
    ```
    
    /// tip | Dica
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  8. cmd/background-newdisks-heal-ops.go

    	// Last object scanned.
    	Bucket string `json:"-"`
    	Object string `json:"-"`
    
    	// Numbers when current bucket started healing,
    	// for resuming with correct numbers.
    	ResumeItemsHealed  uint64 `json:"-"`
    	ResumeItemsFailed  uint64 `json:"-"`
    	ResumeItemsSkipped uint64 `json:"-"`
    	ResumeBytesDone    uint64 `json:"-"`
    	ResumeBytesFailed  uint64 `json:"-"`
    	ResumeBytesSkipped uint64 `json:"-"`
    
    	// Filled on startup/restarts.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  9. fastapi/encoders.py

                and those objects can't (and shouldn't be) serialized to JSON.
                """
            ),
        ] = True,
    ) -> Any:
        """
        Convert any object to something that can be encoded in JSON.
    
        This is used internally by FastAPI to make sure anything you return can be
        encoded as JSON before it is sent to the client.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  10. buildscripts/multipart-quorum-test.sh

    	export AWS_ACCESS_KEY_ID=minio
    	export AWS_SECRET_ACCESS_KEY=minio123
    	aws --endpoint-url http://localhost:"$start_port" s3api create-multipart-upload --bucket bucket --key obj-1 >upload-id.json
    	uploadId=$(jq -r '.UploadId' upload-id.json)
    
    	truncate -s 5MiB file-5mib
    	for i in {1..2}; do
    		aws --endpoint-url http://localhost:"$start_port" s3api upload-part \
    			--upload-id "$uploadId" --bucket bucket --key obj-1 \
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Sep 06 10:51:23 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top