swagger-api/swagger-codegen

[Swift] Add configuration class

Open

#5.642 geöffnet am 15. Mai 2017

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (5.474 Forks)batch import
Enhancement: FeatureGeneral: Discussionhelp wanted

Repository-Metriken

Stars
 (12.701 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description

Similar to ObjC API client, which uses DefaultConfiguration class to store settings such as username, password, host, option to verify SSL, etc, we want to consider doing the same in the Swift 2.x/3.x API client.

Currently, ObjC is using singleton for the configuration class. For Python, we just switched from singleton to per-ApiClient for the configuration class. For Swift, we might want to create the configuration class per ApiClient instead of singleton as other API clients (e.g. C#, PHP, Ruby) also follows the per-ApiClient design (instead of having all instances of ApiClient share the same configuration)

Swagger-codegen version

2.3.0

If anyone has any suggestion/feedback, or wants to work on this enhancement, please reply to let us know. Thank you.

Contributor Guide