test3.yaml
· 1.2 KiB · YAML
Bruto
swagger: '2.0'
info:
version: 1.0.0
title: Test Login Page
paths:
/:
post:
summary: Login
description: Authenticate and retrieve a message from the server
responses:
'200':
description: Successful response
schema:
type: object
properties:
message:
type: string
x-swagger-router-controller: loginController
x-swagger-router-controllers:
loginController:
post:
operationId: loginUser
parameters:
- name: username
in: formData
required: true
type: string
- name: password
in: formData
required: true
type: string
responses:
'200':
description: Login successful
schema:
type: object
properties:
message:
type: string
x-swagger-router-handle:
- get:
url: http://128.0.0.1/message
headers:
Content-Type: application/json
response:
description: Successful response
schema:
type: object
properties:
message:
type: string
1 | swagger: '2.0' |
2 | info: |
3 | version: 1.0.0 |
4 | title: Test Login Page |
5 | paths: |
6 | /: |
7 | post: |
8 | summary: Login |
9 | description: Authenticate and retrieve a message from the server |
10 | responses: |
11 | '200': |
12 | description: Successful response |
13 | schema: |
14 | type: object |
15 | properties: |
16 | message: |
17 | type: string |
18 | x-swagger-router-controller: loginController |
19 | x-swagger-router-controllers: |
20 | loginController: |
21 | post: |
22 | operationId: loginUser |
23 | parameters: |
24 | - name: username |
25 | in: formData |
26 | required: true |
27 | type: string |
28 | - name: password |
29 | in: formData |
30 | required: true |
31 | type: string |
32 | responses: |
33 | '200': |
34 | description: Login successful |
35 | schema: |
36 | type: object |
37 | properties: |
38 | message: |
39 | type: string |
40 | x-swagger-router-handle: |
41 | - get: |
42 | url: http://128.0.0.1/message |
43 | headers: |
44 | Content-Type: application/json |
45 | response: |
46 | description: Successful response |
47 | schema: |
48 | type: object |
49 | properties: |
50 | message: |
51 | type: string |