forked from lthn/blockchain
Introduces a new Angular client SDK for the Lethean Blockchain API, generated via OpenAPI Generator. Includes all necessary Angular service, model, configuration, and packaging files, and updates the Makefile to support the 'angular' target for SDK generation.
20 lines
555 B
TypeScript
Generated
20 lines
555 B
TypeScript
Generated
import { HttpParameterCodec } from '@angular/common/http';
|
|
|
|
/**
|
|
* Custom HttpParameterCodec
|
|
* Workaround for https://github.com/angular/angular/issues/18261
|
|
*/
|
|
export class CustomHttpParameterCodec implements HttpParameterCodec {
|
|
encodeKey(k: string): string {
|
|
return encodeURIComponent(k);
|
|
}
|
|
encodeValue(v: string): string {
|
|
return encodeURIComponent(v);
|
|
}
|
|
decodeKey(k: string): string {
|
|
return decodeURIComponent(k);
|
|
}
|
|
decodeValue(v: string): string {
|
|
return decodeURIComponent(v);
|
|
}
|
|
}
|