मैं एक एपीआई दस्तावेज और परीक्षण करना चाहता हूं, जो http://editor.swagger.io/ में कुकी आधारित स्वामित्व का उपयोग करता है। एक साधारण उदाहरण देने के लिए: निम्नलिखित वाईएएमएल में कैसे लिखें, कि/लॉगिन एक्शन एक कुकी बनाता है और कुकी को/MyMecrecretStuff को दिखाने के लिए पास किया जाना है?स्वैगर संपादक में कुकीज़ का उपयोग कैसे करें
swagger: '2.0'
info:
title: Test API
version: '1'
host: my.test.com
schemes:
- https
basePath:/
consumes:
- multipart/form-data
produces:
- application/json
paths:
/login:
post:
parameters:
- name: username
in: formData
required: true
type: string
- name: password
in: formData
required: true
type: string
default: secret
responses:
200:
description: OK
/showMySecretStuff:
get:
responses:
200:
description: OK