@@ -76,16 +76,22 @@ func TestCodeSampleFilter(t *testing.T) {
7676 Extensions : map [string ]any {
7777 "x-sunset" : "9999-12-31" ,
7878 "x-codeSamples" : []codeSample {
79+ {
80+ Lang : "cURL" ,
81+ Label : "Atlas CLI" ,
82+ Source : "atlas api testOperationID --help" ,
83+ },
7984 {
8085 Lang : "cURL" ,
81- Label : "curl" ,
82- Source : "curl --user \" {PUBLIC-KEY}:{PRIVATE-KEY }\" \\ \n --digest \\ \n " +
86+ Label : "curl (Service Accounts) " ,
87+ Source : "curl --header \" Authorization: Bearer ${ACCESS_TOKEN }\" \\ \n " +
8388 "--header \" Accept: application/vnd.atlas.2025-01-01+json\" \\ \n " + "-X GET \" https://cloud.mongodb.com/test?pretty=true\" " ,
8489 },
8590 {
86- Lang : "cURL" ,
87- Label : "Atlas CLI" ,
88- Source : "atlas api testOperationID --help" ,
91+ Lang : "cURL" ,
92+ Label : "curl (Digest)" ,
93+ Source : "curl --user \" ${PUBLIC_KEY}:${PRIVATE_KEY}\" \\ \n --digest \\ \n " +
94+ "--header \" Accept: application/vnd.atlas.2025-01-01+json\" \\ \n " + "-X GET \" https://cloud.mongodb.com/test?pretty=true\" " ,
8995 },
9096 },
9197 },
@@ -139,16 +145,22 @@ func TestCodeSampleFilter(t *testing.T) {
139145 Extensions : map [string ]any {
140146 "x-sunset" : "9999-12-31" ,
141147 "x-codeSamples" : []codeSample {
148+ {
149+ Lang : "cURL" ,
150+ Label : "Atlas CLI" ,
151+ Source : "atlas api testOperationID --help" ,
152+ },
142153 {
143154 Lang : "cURL" ,
144- Label : "curl" ,
145- Source : "curl --user \" {PUBLIC-KEY}:{PRIVATE-KEY }\" \\ \n --digest \\ \n " +
155+ Label : "curl (Service Accounts) " ,
156+ Source : "curl --header \" Authorization: Bearer ${ACCESS_TOKEN }\" \\ \n " +
146157 "--header \" Accept: application/vnd.atlas.preview+json\" \\ \n " + "-X GET \" https://cloud.mongodb.com/test?pretty=true\" " ,
147158 },
148159 {
149- Lang : "cURL" ,
150- Label : "Atlas CLI" ,
151- Source : "atlas api testOperationID --help" ,
160+ Lang : "cURL" ,
161+ Label : "curl (Digest)" ,
162+ Source : "curl --user \" ${PUBLIC_KEY}:${PRIVATE_KEY}\" \\ \n --digest \\ \n " +
163+ "--header \" Accept: application/vnd.atlas.preview+json\" \\ \n " + "-X GET \" https://cloud.mongodb.com/test?pretty=true\" " ,
152164 },
153165 },
154166 },
@@ -202,16 +214,22 @@ func TestCodeSampleFilter(t *testing.T) {
202214 Extensions : map [string ]any {
203215 "x-sunset" : "9999-12-31" ,
204216 "x-codeSamples" : []codeSample {
217+ {
218+ Lang : "cURL" ,
219+ Label : "Atlas CLI" ,
220+ Source : "atlas api testOperationID --help" ,
221+ },
205222 {
206223 Lang : "cURL" ,
207- Label : "curl" ,
208- Source : "curl --user \" {PUBLIC-KEY}:{PRIVATE-KEY }\" \\ \n --digest \\ \n " +
224+ Label : "curl (Service Accounts) " ,
225+ Source : "curl --header \" Authorization: Bearer ${ACCESS_TOKEN }\" \\ \n " +
209226 "--header \" Accept: application/vnd.atlas.2025-01-01.upcoming+json\" \\ \n " + "-X GET \" https://cloud.mongodb.com/test?pretty=true\" " ,
210227 },
211228 {
212- Lang : "cURL" ,
213- Label : "Atlas CLI" ,
214- Source : "atlas api testOperationID --help" ,
229+ Lang : "cURL" ,
230+ Label : "curl (Digest)" ,
231+ Source : "curl --user \" ${PUBLIC_KEY}:${PRIVATE_KEY}\" \\ \n --digest \\ \n " +
232+ "--header \" Accept: application/vnd.atlas.2025-01-01.upcoming+json\" \\ \n " + "-X GET \" https://cloud.mongodb.com/test?pretty=true\" " ,
215233 },
216234 },
217235 },
0 commit comments