swagger-api/swagger-codegen

[Apex] Use NamedCredentials/Callouts instead of remoteSite

Open

#5679 aperta il 21 mag 2017

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Client: ApexEnhancement: Generalhelp wanted

Metriche repository

Star
 (12.701 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

The initial implementation for Apex supports only remote site settings. That leads to the issue that the developer has to hardcode authentication credentials into the Apex classes.

The best approach is to use Named Credentials in combination with callouts. With that an administration can define URL/Credentials etc. via UI in Salesforce and nothing needs to be hardcoded in the Apex classes.

Swagger-codegen version

master

Guida contributor