About 65 results
https://rednafi.com/python/testing-http-requests/ · 2 Sep 2024
Test HTTP requests in Python with pytest-httpx for full mocking, respx for pattern matching, or VCR.py for recording real responses.
https://rednafi.com/python/log-context-propagation/ · 6 Aug 2024
Automatically tag Python logs with request context using middleware and contextvars for distributed tracing in ASGI web applications.
https://rednafi.com/misc/protobuffed-contracts/ · 10 May 2024
Define service contracts with Protocol Buffers for non-gRPC systems. Generate serializers, maintain self-documented APIs, and ensure cross-language compatibility.
https://cbennell.com/posts/using-ruby-structs-to-model-api-responses · 5 May 2024
Here's a technique I use to model API responses in a simple class. This provides nice ergonomics with minimal boilerplate.
https://blog.nove-b.dev/posts/api-methods-put-or-patch · 1 May 2024
APIを作成しているので、PUTとPATCHの違いを調べてみた
https://rednafi.com/misc/etag-and-http-caching/ · 10 Apr 2024
Implement client-side HTTP caching with ETag headers. Learn If-None-Match, 304 Not Modified responses, and weak validation in Go servers.
https://rednafi.com/go/dysfunctional-options-pattern/ · 6 Mar 2024
Discover a simpler alternative to functional options: method chaining with builder-style configuration that's 76x faster and easier to understand.
https://blog.nove-b.dev/posts/display-api-swagger-ui-golang · 28 Dec 2023
タイトルにあるようにSwaggerで作成したいのであれば、yamlを作成すればいい。 だけど、そんなことをするのは面倒くさい。 というのもNestJsではデコレーターを追加するだけで自動でSwagger UI...
https://blog.nove-b.dev/posts/create-registration-webapi-jwt-authentication-golang · 20 Dec 2023
期待するもの 新規登録のAPIを作成したので、次はログイン機能を作成したい。 ログインは、メールアドレスとパスワードを送り一致したら、tokenを取得する。 で、tokenを使って認証付きの...
https://blog.nove-b.dev/posts/create-signup-unsubscribe-webapi-golang · 14 Dec 2023
いたるまで 1. Go Lang で WebAPI を作成するために、まずは Docker で MySQL を構築する 2. Go Lang で WebAPI を作成するために、Golang で MySQL に接続する 3. Go Lang で WebAPI を作成するために、Golang でサー...