@@ -37,10 +37,14 @@ const app = express();
37
37
38
38
// Configure the global speakeasy SDK instance
39
39
const cfg: Config = {
40
- apiKey: " YOUR API KEY HERE" , // retrieve from Speakeasy API dashboard.
41
- apiID: " YOUR API ID HERE" , // custom Api ID to associate captured requests with.
42
- versionID: " YOUR VERSION ID HERE" , // custom Version ID to associate captured requests
43
- port: 3000 , // The port number your express app is listening on (required to build full URLs on non-standard ports)
40
+ apiKey: " YOUR API KEY HERE" , // retrieve from Speakeasy API dashboard.
41
+ apiID: " YOUR API ID HERE" , // enter a name that you'd like to associate captured requests with.
42
+ // This name will show up in the Speakeasy dashboard. e.g. "PetStore" might be a good ApiID for a Pet Store's API.
43
+ // No spaces allowed.
44
+ versionID: " YOUR VERSION ID HERE" , // enter a version that you would like to associate captured requests with.
45
+ // The combination of ApiID (name) and VersionID will uniquely identify your requests in the Speakeasy Dashboard.
46
+ // e.g. "v1.0.0". You can have multiple versions for the same ApiID (if running multiple versions of your API)
47
+ port: 3000 , // The port number your express app is listening on (required to build full URLs on non-standard ports)
44
48
};
45
49
speakeasy .configure (cfg );
46
50
@@ -70,10 +74,14 @@ export class AppModule implements NestModule {
70
74
configure(consumer : MiddlewareConsumer ) {
71
75
// Configure the global speakeasy SDK instance
72
76
const cfg: Config = {
73
- apiKey: " YOUR API KEY HERE" , // retrieve from Speakeasy API dashboard.
74
- apiID: " YOUR API ID HERE" , // custom Api ID to associate captured requests with.
75
- versionID: " YOUR VERSION ID HERE" , // custom Version ID to associate captured requests
76
- port: 3000 , // The port number your express app is listening on (required to build full URLs on non-standard ports)
77
+ apiKey: " YOUR API KEY HERE" , // retrieve from Speakeasy API dashboard.
78
+ apiID: " YOUR API ID HERE" , // enter a name that you'd like to associate captured requests with.
79
+ // This name will show up in the Speakeasy dashboard. e.g. "PetStore" might be a good ApiID for a Pet Store's API.
80
+ // No spaces allowed.
81
+ versionID: " YOUR VERSION ID HERE" , // enter a version that you would like to associate captured requests with.
82
+ // The combination of ApiID (name) and VersionID will uniquely identify your requests in the Speakeasy Dashboard.
83
+ // e.g. "v1.0.0". You can have multiple versions for the same ApiID (if running multiple versions of your API)
84
+ port: 3000 , // The port number your express app is listening on (required to build full URLs on non-standard ports)
77
85
};
78
86
speakeasy .configure (cfg );
79
87
@@ -382,4 +390,4 @@ app.all("/", (req, res) => {
382
390
383
391
// the rest of your handlers code
384
392
});
385
- ` ` `
393
+ ` ` `
0 commit comments