mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #2932] [MERGED] Add optional camelCase formatter #9280
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/2932
Author: @crobibero
Created: 4/20/2020
Status: ✅ Merged
Merged: 4/25/2020
Merged by: @Bond-009
Base:
api-migration← Head:api-casing📝 Commits (4)
ad67081add camelCase formatterc89dc89Fix PascalCasefe63214Move Json Options to static class for easier access.0765ef8Apply suggestions, fix warning📊 Changes
4 files changed (+88 additions, -0 deletions)
View changed files
📝
Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs(+3 -0)➕
Jellyfin.Server/Formatters/CamelCaseJsonProfileFormatter.cs(+21 -0)➕
Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs(+23 -0)➕
Jellyfin.Server/Models/JsonOptions.cs(+41 -0)📄 Description
With
Accept: application/json;profile="CamelCase"Response:
With
Accept: application/jsonorAccept: application/json;profile="PascalCase"Response:
Issues
Fixes #2930
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.