https://developers.strava.com/docs/ specifies how to generate client code.
I got the model generated
java -jar C:\swagger-codegen-cli.jar generate --lang java --output C:\SwaggerCodeGen\strava-models --input-spec https://developers.strava.com/swagger/swagger.json --config C:\config.json
This is 1 of the config settings I used
{
"groupId": "com.vschouppe.strava",
"artifactId": "strava-api-client",
"apiPackage": "com.vschouppe.strava.api",
"modelPackage": "com.vschouppe.strava.model",
"invokerPackage": "com.vschouppe.strava.invoker",
"generateApis": true,
"generateModels": true,
"library": "resttemplate",
"dateLibrary": "java8",
"serializationLibrary": "jackson",
"hideGenerationTimestamp": true
}
Why are my clients and api’s not generated?
i.e.
https://developers.strava.com/docs/reference/
import com.strava.api.v3.auth.*;
import com.strava.api.v3.model.*;
import com.strava.api.v3.api.ActivitiesApi;
ApiClient client = new ApiClient(...); ActivitiesApi api = client.createService(ActivitiesApi.class);