This repository was archived by the owner on Dec 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 1
1
import * as path from 'path' ;
2
2
import * as Serverless from 'serverless' ;
3
3
import { DefinitionGenerator } from '../DefinitionGenerator' ;
4
- import { merge } from '../utils' ;
4
+ import _ = require ( 'lodash' ) ;
5
5
6
6
class ServerlessInterface extends Serverless {
7
7
public service : any = { } ;
@@ -49,7 +49,7 @@ describe('OpenAPI Documentation Generator', () => {
49
49
50
50
const funcConfigs = sls . service . getAllFunctions ( ) . map ( ( functionName ) => {
51
51
const func = sls . service . getFunction ( functionName ) ;
52
- return merge ( { _functionName : functionName } , func ) ;
52
+ return _ . merge ( { _functionName : functionName } , func ) ;
53
53
} ) ;
54
54
55
55
docGen . readFunctions ( funcConfigs ) ;
Original file line number Diff line number Diff line change @@ -189,13 +189,43 @@ components:
189
189
info :
190
190
title : ' '
191
191
description : ' '
192
- version : ae88c557-65e0-4feb-a885-ebe66a58cca8
192
+ version : 96d3d004-1a24-4384-9df7-1e7416393223
193
193
paths :
194
194
/create :
195
195
post :
196
196
operationId : createUser
197
197
summary : Create User
198
198
description : Creates a user and then sends a generated password email
199
+ requestBody :
200
+ content :
201
+ application/json :
202
+ schema :
203
+ $ref : ' #/components/schemas/PutDocumentRequest'
204
+ description : A user information object
205
+ parameters :
206
+ - name : username
207
+ in : path
208
+ description : The username for a user to create
209
+ required : true
210
+ schema :
211
+ type : string
212
+ pattern : ' ^[-a-z0-9_]+$'
213
+ - name : membershipType
214
+ in : query
215
+ description : The user's Membership Type
216
+ required : false
217
+ allowEmptyValue : false
218
+ schema :
219
+ type : string
220
+ enum :
221
+ - premium
222
+ - standard
223
+ - name : SessionId
224
+ in : cookie
225
+ description : A Session ID variable
226
+ required : false
227
+ schema :
228
+ type : string
199
229
responses :
200
230
' 201 ' :
201
231
description : A user object along with generated API Keys
You can’t perform that action at this time.
0 commit comments