changelog

This commit is contained in:
lovasoa
2025-02-15 00:06:31 +01:00
parent 1c5883ddd9
commit 28d0beec90
+5 -6
View File
@@ -24,12 +24,11 @@ Weve reworked our request routing system from top to bottom to make things sm
**HTTP Basic Authentication**
SQLPages `sqlpage.fetch(request)` function now supports HTTP Basic Authentication. Quickly call external APIs that require a username and password. For example, in PostgreSQL:
```sql
SELECT sqlpage.fetch(
'https://api.example.com/data',
JSON_OBJECT(
'auth', JSON_OBJECT('username', 'user', 'password', 'pass')
)
);
SET result = sqlpage.fetch(json_object(
'url', 'https://api.example.com/data',
'username', 'user',
'password', 'pass'
));
```
Learn more in the [fetch documentation](https://sql-page.com/documentation.sql?component=fetch#component).