Refactor API response descriptors to use resource classes
- Updated response descriptors in various endpoints to utilize specific resource classes instead of generic JsonResponse. - Changed response types for friendship, guild, party, and support issue endpoints to their respective resource classes. - Incremented version number in manifest.json to 0.5.3 for the new changes.
This commit is contained in:
@@ -17,6 +17,7 @@ These files include:
|
||||
- middleware metadata
|
||||
- request field descriptors
|
||||
- response type descriptors
|
||||
- typed domain clients and DTOs for generated API resources
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -44,6 +45,18 @@ String uri = PathBuilder.resolve(
|
||||
);
|
||||
```
|
||||
|
||||
Use generated domain clients for direct typed calls:
|
||||
|
||||
```java
|
||||
PlayerPermissionSnapshot permissions =
|
||||
NetworkPlugin.client().players().authorizationPermissionSnapshot(playerId);
|
||||
|
||||
AssetPackVersion activePack =
|
||||
NetworkPlugin.client().assets().getActivePack(packKey);
|
||||
```
|
||||
|
||||
Some generated clients include hand-friendly aliases for route-shaped names. For example, the assets domain exposes `getActivePack(...)` and `getPackVersionFiles(...)` over the generated active-pack and version-files endpoints.
|
||||
|
||||
## Regeneration
|
||||
|
||||
The source of truth is `../core-control-plane`.
|
||||
|
||||
Reference in New Issue
Block a user