- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 25 for Totals (0.32 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial008b.py
def test_get_item(): response = client.get("/items/portal-gun") assert response.status_code == 200, response.text
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Dec 26 20:37:34 GMT 2023 - 697 bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008b_an_py39.py
@needs_py39 def test_get_item(client: TestClient): response = client.get("/items/portal-gun") assert response.status_code == 200, response.text
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 918 bytes - Viewed (0) -
docs/pt/docs/tutorial/extra-data-types.md
* `datetime.timedelta`: * O `datetime.timedelta` do Python. * Em requisições e respostas será representado como um `float` de segundos totais.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 3K bytes - Viewed (0) -
docs/en/docs/advanced/openapi-callbacks.md
## An app with callbacks Let's see all this with an example. Imagine you develop an app that allows creating invoices. These invoices will have an `id`, `title` (optional), `customer`, and `total`. The user of your API (an external developer) will create an invoice in your API with a POST request. Then your API will (let's imagine): * Send the invoice to some customer of the external developer.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 7.7K bytes - Viewed (0) -
docs/zh/docs/advanced/openapi-callbacks.md
API 应用调用外部 API 时的流程叫做**回调**。因为外部开发者编写的软件发送请求至您的 API,然后您的 API 要进行回调,并把请求发送至外部 API。 此时,我们需要存档外部 API 的*信息*,比如应该有哪些*路径操作*,返回什么样的请求体,应该返回哪种响应等。 ## 使用回调的应用 示例如下。 假设要开发一个创建发票的应用。 发票包括 `id`、`title`(可选)、`customer`、`total` 等属性。 API 的用户 (外部开发者)要在您的 API 内使用 POST 请求创建一条发票记录。 (假设)您的 API 将: * 把发票发送至外部开发者的消费者 * 归集现金 * 把通知发送至 API 的用户(外部开发者) * 通过(从您的 API)发送 POST 请求至外部 API (即**回调**)来完成 ## 常规 **FastAPI** 应用
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 22:46:28 GMT 2024 - 6.6K bytes - Viewed (0) -
docs/en/docs/js/custom.js
return data } async function getData() { let page = 1 let data = [] let dataBatch = await getDataBatch(page) data = data.concat(dataBatch.items) const totalCount = dataBatch.total_count while (data.length < totalCount) { page += 1 dataBatch = await getDataBatch(page) data = data.concat(dataBatch.items) } return data } function setupTermynal() {
JavaScript - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 08 17:50:56 GMT 2021 - 6.6K bytes - Viewed (0) -
docs/pt/docs/index.md
Você verá a resposta JSON como: ```JSON {"item_id": 5, "q": "somequery"} ``` Você acabou de criar uma API que: * Recebe requisições HTTP nas _rotas_ `/` e `/items/{item_id}`. * Ambas _rotas_ fazem operações `GET` (também conhecido como _métodos_ HTTP). * A _rota_ `/items/{item_id}` tem um _parâmetro de rota_ `item_id` que deve ser um `int`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 18.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/first-steps.md
Nesse caso, <a href="https://github.com/OAI/OpenAPI-Specification" class="external-link" target="_blank">OpenAPI</a> é uma especificação que determina como definir um *schema* da sua API. Esta definição de *schema* inclui as rotas da sua API, os parâmetros possíveis que elas usam, etc. #### "*Schema*" de dados O termo "*schema*" também pode se referir à forma de alguns dados, como um conteúdo JSON.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.6K bytes - Viewed (0) -
tests/test_sub_callbacks.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 13.8K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-data-types.md
* In requests and responses will be represented as a `str` in ISO 8601 format, like: `14:23:55.003`. * `datetime.timedelta`: * A Python `datetime.timedelta`. * In requests and responses will be represented as a `float` of total seconds. * Pydantic also allows representing it as a "ISO 8601 time diff encoding", <a href="https://docs.pydantic.dev/latest/concepts/serialization/#json_encoders" class="external-link" target="_blank">see the docs for more info</a>.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 4.1K bytes - Viewed (0)