-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.txt
93 lines (87 loc) · 2.38 KB
/
base.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Request:
Create a swagger description for the route file given at the top, considering the following files
Create this specification to be added with @swagger inside the route javascript file
Create a tag that defines the route and add it to it
If a parameter is enum write it as enum
Show only rows to be added as attachments
Make Language: Turkish
Example:
/**
* @swagger
* tags:
* name: Fatura
* description: Fatura işlemleri
*
* /fatura:
* get:
* summary: Fatura Getirme
* description: Belirli bir fatura numarasına veya filtrelemeye göre faturaları getirir.
* tags: [Fatura]
* parameters:
* - name: TIP
* in: query
* required: true
* schema:
* type: string
* enum: [FATURA, SIPARIS, IADE]
* description: Fatura tipi.
* - name: FATURA_NO
* in: query
* required: true
* schema:
* type: string
* description: Fatura numarası.
* responses:
* '200':
* description: Fatura başarıyla getirildi.
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Fatura'
*
* post:
* summary: Fatura Oluşturma
* description: Yeni bir fatura oluşturur.
* tags: [Fatura]
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/CreateFatura'
* responses:
* '200':
* description: Fatura başarıyla oluşturuldu.
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Fatura'
*
* components:
* schemas:
* Fatura:
* type: object
* properties:
* TIP:
* type: string
* enum: [FATURA, SIPARIS, IADE]
* example: FATURA
* description: Fatura tipi.
* SUBE_KODU:
* type: number
* example: 1
* description: Şube kodu.
* FATURA_NO:
* type: string
* example: 20210001
* description: Fatura numarası.
* PREFIX:
* type: string
* example: 2021
* description: Fatura numarası öneki.
* CARI_KOD:
* type: string
* example: C001
* description: Cari kodu.
*/
Files: