Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for Blog (0.17 sec)

  1. docs/en/docs/tutorial/security/oauth2-jwt.md

    For example, you could identify a "car" or a "blog post".
    
    Then you could add permissions about that entity, like "drive" (for the car) or "edit" (for the blog).
    
    And then, you could give that JWT token to a user (or bot), and they could use it to perform those actions (drive the car, or edit the blog post) without even needing to have an account, just with the JWT token your API generated for that.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  2. docs/en/data/external_links.yml

    Articles:
      English:
      - author: Kurtis Pykes - NVIDIA
        link: https://developer.nvidia.com/blog/building-a-machine-learning-microservice-with-fastapi/
        title: Building a Machine Learning Microservice with FastAPI
      - author: Ravgeet Dhillon - Twilio
        link: https://www.twilio.com/en-us/blog/booking-appointments-twilio-notion-fastapi
        title: Booking Appointments with Twilio, Notion, and FastAPI
      - author: Abhinav Tripathi - Microsoft Blogs
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 21 20:57:27 GMT 2024
    - 21.3K bytes
    - Viewed (2)
  3. docs/de/docs/tutorial/security/oauth2-jwt.md

    Sie könnten beispielsweise ein „Auto“ oder einen „Blog-Beitrag“ identifizieren.
    
    Anschließend könnten Sie Berechtigungen für diese Entität hinzufügen, etwa „Fahren“ (für das Auto) oder „Bearbeiten“ (für den Blog).
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:27:06 GMT 2024
    - 15.1K bytes
    - Viewed (0)
  4. docs/en/docs/release-notes.md

    * 📝 Replace HTTP code returned in case of existing user error in docs for testing. PR [#4482](https://github.com/tiangolo/fastapi/pull/4482) by [@TristanMarion](https://github.com/TristanMarion).
    * 📝 Add blog for FastAPI & Supabase. PR [#6018](https://github.com/tiangolo/fastapi/pull/6018) by [@theinfosecguy](https://github.com/theinfosecguy).
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:28:00 GMT 2024
    - 385.5K bytes
    - Viewed (1)
  5. tests/test_tutorial/test_background_tasks/test_tutorial002.py

    client = TestClient(app)
    
    
    def test():
        log = Path("log.txt")
        if log.is_file():
            os.remove(log)  # pragma: no cover
        response = client.post("/send-notification/******@****.***?q=some-query")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Message sent"}
        with open("./log.txt") as f:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 568 bytes
    - Viewed (0)
  6. docs_src/events/tutorial002.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.on_event("shutdown")
    def shutdown_event():
        with open("log.txt", mode="a") as log:
            log.write("Application shutdown")
    
    
    @app.get("/items/")
    async def read_items():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 255 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_events/test_tutorial002.py

            response = client.get("/items/")
            assert response.status_code == 200, response.text
            assert response.json() == [{"name": "Foo"}]
        with open("log.txt") as log:
            assert "Application shutdown" in log.read()
    
    
    def test_openapi_schema(app: FastAPI):
        with TestClient(app) as client:
            response = client.get("/openapi.json")
            assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/background-tasks.md

    ```Python hl_lines="13  15  22  25"
    {!../../../docs_src/background_tasks/tutorial002.py!}
    ```
    
    Neste exemplo, as mensagens serão gravadas no arquivo `log.txt` _após_ o envio da resposta.
    
    Se houver uma consulta na solicitação, ela será gravada no log em uma tarefa em segundo plano.
    
    E então outra tarefa em segundo plano gerada na _função de operação de caminho_ escreverá uma mensagem usando o parâmetro de caminho `email`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon May 09 23:44:32 GMT 2022
    - 5.3K bytes
    - Viewed (0)
  9. .github/actions/notify-translations/app/main.py

        # Normally only one language, but still
        for lang in langs:
            if lang not in lang_to_discussion_map:
                log_message = f"Could not find discussion for language: {lang}"
                logging.error(log_message)
                raise RuntimeError(log_message)
            discussion = lang_to_discussion_map[lang]
            logging.info(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/background-tasks.md

        {!> ../../../docs_src/background_tasks/tutorial002.py!}
        ```
    
    In obigem Beispiel werden die Nachrichten, *nachdem* die Response gesendet wurde, in die Datei `log.txt` geschrieben.
    
    Wenn im Request ein Query-Parameter enthalten war, wird dieser in einem Hintergrundtask in das Log geschrieben.
    
    Und dann schreibt ein weiterer Hintergrundtask, der in der *Pfadoperation-Funktion* erstellt wird, eine Nachricht unter Verwendung des Pfad-Parameters `email`.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 12 14:15:29 GMT 2024
    - 6.4K bytes
    - Viewed (0)
Back to top