Tags

#api
api

3stories
3 d agolatest
ChatGPT API
API credits for subscribers
SWSimon Willison Simon Willison 3 d ago

API credits now included with eligible ChatGPT subscriptions

OpenAI now gives eligible $100, $200 and $500 ChatGPT subscribers the same dollar amount in credits for an API organization. It mirrors a benefit Anthropic announced earlier this month for its Max and Team plans. For developers who pay for both a coding assistant subscription and API usage, it changes the cost math.

GraphQL.NET
Flexible data queries
DVDEV Community: #aspnetcore Lincoln Zocateli Oct 26

GraphQL for Beginners: A .NET 10 Guide with GraphQL.NET

This beginner guide explains GraphQL schemas, queries, mutations and resolvers and builds a working endpoint with GraphQL.NET on ASP.NET Core and .NET 10. It compares the same product read with a REST endpoint and shows how validation errors come back as HTTP 200 with an errors array. Useful for .NET teams weighing GraphQL, especially the server-side duties it adds.

ASP.NET Core 10
Refuse bad requests well
DVDEV Community: #aspnetcore MICHAEL-MAURICE Oct 24

Six Requests a Minimal API Should Refuse, and Their Status Codes

How should a warehouse order API refuse illegal state changes, short stock, stale ETag writes and malformed JSON? The author builds a pick-pack-ship demo on .NET 10 Minimal APIs and EF Core 10, mapping each refusal to a specific status code, such as 409, 412 and 400. He also explains why an exact retry should return 200 instead of an error. A useful guide for anyone designing workflow endpoints.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message