diff --git a/CHANGELOG.md b/CHANGELOG.md index 90a227708..d158171fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Improved the allocations by ETF holding on the allocations page for the impersonation mode (experimental) +- Improved the detection of REST APIs (`JSON`) used via the scraper configuration ## 2.92.0 - 2024-06-30 diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 10323e640..19687e8dd 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -10,7 +10,7 @@ Remove permission in `UserService` using `without()` ### Frontend -Use `*ngIf="user?.settings?.isExperimentalFeatures"` in HTML template +Use `@if (user?.settings?.isExperimentalFeatures) {}` in HTML template ## Git diff --git a/README.md b/README.md index cd8af7af2..ba2b6bb9c 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ We provide official container images hosted on [Docker Hub](https://hub.docker.c | ------------------------ | ------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | `ACCESS_TOKEN_SALT` | string | | A random string used as salt for access tokens | | `API_KEY_COINGECKO_DEMO` | string (`optional`) |   | The _CoinGecko_ Demo API key | -| `API_KEY_COINGECKO_PRO` | string (`optional`) | | The _CoinGecko_ Pro API | +| `API_KEY_COINGECKO_PRO` | string (`optional`) | | The _CoinGecko_ Pro API key | | `DATABASE_URL` | string | | The database connection URL, e.g. `postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?sslmode=prefer` | | `HOST` | string (`optional`) | `0.0.0.0` | The host where the Ghostfolio application will run on | | `JWT_SECRET_KEY` | string | | A random string used for _JSON Web Tokens_ (JWT) | diff --git a/apps/api/src/services/data-provider/manual/manual.service.ts b/apps/api/src/services/data-provider/manual/manual.service.ts index d2e5bca85..0655d2318 100644 --- a/apps/api/src/services/data-provider/manual/manual.service.ts +++ b/apps/api/src/services/data-provider/manual/manual.service.ts @@ -257,7 +257,7 @@ export class ManualService implements DataProviderInterface { signal: abortController.signal }); - if (headers['content-type'] === 'application/json') { + if (headers['content-type'].includes('application/json')) { const data = JSON.parse(body); const value = String( jsonpath.query(data, scraperConfiguration.selector)[0]