Skip to main content
Question

How do I get the Strava client APIs generated?


Forum|alt.badge.img+1

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);

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings