Skip to content

Commit 6abdc9b

Browse files
author
Ogulcan Girginc
committed
Add sales_offer id to sales_invoice create
1 parent 9b47766 commit 6abdc9b

1 file changed

Lines changed: 185 additions & 3 deletions

File tree

spec/swagger.yaml

Lines changed: 185 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,23 @@ info:
66
url: 'https://apidocs.parasut.com/logo.png'
77
backgroundColor: null
88
description: >
9+
Bir önceki API (V1) dökümantasyonuna [bu
10+
bağlantı](https://api.parasut.com/docs) ile ulaşabilirsiniz
11+
12+
913
# GİRİŞ
1014
1115
1216
## API Hakkında
1317
1418
15-
Paraşüt API'yi kullanmak veya görüşlerinizi
19+
Paraşüt API henüz beta aşamasındadır ve sadece belli sayıda kullanıcıya
20+
açıktır. Eğer beta test sürecine katılmak veya API hakkındaki görüşlerinizi
1621
bizimle paylaşmak isterseniz lütfen bizimle destek@parasut.com adresi
17-
üzerinden iletişime geçiniz.
22+
üzerinden bağlantıya geçiniz.
1823
1924
20-
API'yi kullanarak Paraşüt verilerine ulaşabilir ve kendi yazdığınız
25+
API'yi kullanarak Paraşüt veritabanına ulaşabilir ve kendi yazdığınız
2126
uygulamalar ile entegre edebilirsiniz. API vasıtasıyla Paraşüt Web arayüzü
2227
ile yapılan hemen her işlemi gerçekleştirebilirsiniz.
2328
@@ -477,6 +482,8 @@ tags:
477482
x-displayName: MAAŞ
478483
- name: SalesInvoices
479484
x-displayName: SATIŞ FATURASI
485+
- name: SalesOffers
486+
x-displayName: SalesOffers
480487
- name: ShipmentDocuments
481488
x-displayName: İRSALİYE
482489
- name: StockMovements
@@ -7971,6 +7978,7 @@ paths:
79717978
- sales_invoice_details
79727979
- payments
79737980
- tags
7981+
- sales_offers
79747982
- sharings
79757983
- recurrence_plans
79767984
- e_archives
@@ -8148,6 +8156,21 @@ paths:
81488156
description: Type of the resource
81498157
enum:
81508158
- tags
8159+
sales_offer:
8160+
type: object
8161+
properties:
8162+
data:
8163+
type: object
8164+
properties:
8165+
id:
8166+
type: string
8167+
maxLength: 255
8168+
type:
8169+
type: string
8170+
maxLength: 255
8171+
description: Type of the resource
8172+
enum:
8173+
- sales_offers
81518174
in: body
81528175
required: true
81538176
responses:
@@ -8176,6 +8199,7 @@ paths:
81768199
- sales_invoice_details
81778200
- payments
81788201
- tags
8202+
- sales_offers
81798203
- sharings
81808204
- recurrence_plans
81818205
- e_archives
@@ -8282,6 +8306,7 @@ paths:
82828306
- sales_invoice_details
82838307
- payments
82848308
- tags
8309+
- sales_offers
82858310
- sharings
82868311
- recurrence_plans
82878312
- e_archives
@@ -8457,6 +8482,21 @@ paths:
84578482
description: Type of the resource
84588483
enum:
84598484
- tags
8485+
sales_offer:
8486+
type: object
8487+
properties:
8488+
data:
8489+
type: object
8490+
properties:
8491+
id:
8492+
type: string
8493+
maxLength: 255
8494+
type:
8495+
type: string
8496+
maxLength: 255
8497+
description: Type of the resource
8498+
enum:
8499+
- sales_offers
84608500
in: body
84618501
required: true
84628502
responses:
@@ -8485,6 +8525,7 @@ paths:
84858525
- sales_invoice_details
84868526
- payments
84878527
- tags
8528+
- sales_offers
84888529
- sharings
84898530
- recurrence_plans
84908531
- e_archives
@@ -8771,6 +8812,7 @@ paths:
87718812
- sales_invoice_details
87728813
- payments
87738814
- tags
8815+
- sales_offers
87748816
- sharings
87758817
- recurrence_plans
87768818
- e_archives
@@ -8877,6 +8919,7 @@ paths:
88778919
- sales_invoice_details
88788920
- payments
88798921
- tags
8922+
- sales_offers
88808923
- sharings
88818924
- recurrence_plans
88828925
- e_archives
@@ -8983,6 +9026,7 @@ paths:
89839026
- sales_invoice_details
89849027
- payments
89859028
- tags
9029+
- sales_offers
89869030
- sharings
89879031
- recurrence_plans
89889032
- e_archives
@@ -9089,6 +9133,7 @@ paths:
90899133
- sales_invoice_details
90909134
- payments
90919135
- tags
9136+
- sales_offers
90929137
- sharings
90939138
- recurrence_plans
90949139
- e_archives
@@ -9276,6 +9321,21 @@ paths:
92769321
description: Type of the resource
92779322
enum:
92789323
- tags
9324+
sales_offer:
9325+
type: object
9326+
properties:
9327+
data:
9328+
type: object
9329+
properties:
9330+
id:
9331+
type: string
9332+
maxLength: 255
9333+
type:
9334+
type: string
9335+
maxLength: 255
9336+
description: Type of the resource
9337+
enum:
9338+
- sales_offers
92799339
in: body
92809340
required: true
92819341
responses:
@@ -9304,6 +9364,7 @@ paths:
93049364
- sales_invoice_details
93059365
- payments
93069366
- tags
9367+
- sales_offers
93079368
- sharings
93089369
- recurrence_plans
93099370
- e_archives
@@ -9357,6 +9418,77 @@ paths:
93579418
type: array
93589419
items:
93599420
$ref: '#/definitions/Error'
9421+
'/{company_id}/sales_offers/{id}':
9422+
parameters:
9423+
- name: company_id
9424+
type: integer
9425+
description: Firma ID
9426+
in: path
9427+
required: true
9428+
- name: id
9429+
type: integer
9430+
description: Sales Offer ID
9431+
in: path
9432+
required: true
9433+
get:
9434+
tags:
9435+
- SalesOffers
9436+
operationId: showSalesOffer
9437+
summary: Show
9438+
description: ''
9439+
responses:
9440+
'200':
9441+
description: Teklif
9442+
schema:
9443+
type: object
9444+
properties:
9445+
data:
9446+
$ref: '#/definitions/SalesOffer'
9447+
'400':
9448+
description: Bad Request
9449+
schema:
9450+
type: object
9451+
properties:
9452+
errors:
9453+
type: array
9454+
items:
9455+
$ref: '#/definitions/Error'
9456+
'401':
9457+
description: Unauthorized
9458+
schema:
9459+
type: object
9460+
properties:
9461+
errors:
9462+
type: array
9463+
items:
9464+
$ref: '#/definitions/Error'
9465+
'403':
9466+
description: Forbidden
9467+
schema:
9468+
type: object
9469+
properties:
9470+
errors:
9471+
type: array
9472+
items:
9473+
$ref: '#/definitions/Error'
9474+
'404':
9475+
description: Not Found
9476+
schema:
9477+
type: object
9478+
properties:
9479+
errors:
9480+
type: array
9481+
items:
9482+
$ref: '#/definitions/Error'
9483+
'422':
9484+
description: Unprocessable Entity
9485+
schema:
9486+
type: object
9487+
properties:
9488+
errors:
9489+
type: array
9490+
items:
9491+
$ref: '#/definitions/Error'
93609492
'/{company_id}/shipment_documents':
93619493
parameters:
93629494
- name: company_id
@@ -14296,6 +14428,21 @@ definitions:
1429614428
description: Type of the resource
1429714429
enum:
1429814430
- tags
14431+
sales_offer:
14432+
type: object
14433+
properties:
14434+
data:
14435+
type: object
14436+
properties:
14437+
id:
14438+
type: string
14439+
maxLength: 255
14440+
type:
14441+
type: string
14442+
maxLength: 255
14443+
description: Type of the resource
14444+
enum:
14445+
- sales_offers
1429914446
sharings:
1430014447
type: object
1430114448
properties:
@@ -14441,6 +14588,41 @@ definitions:
1444114588
- products
1444214589
required:
1444314590
- attributes
14591+
SalesOfferAttributes: {}
14592+
SalesOffer:
14593+
type: object
14594+
properties:
14595+
id:
14596+
type: string
14597+
maxLength: 255
14598+
type:
14599+
type: string
14600+
maxLength: 255
14601+
description: Type of the resource
14602+
enum:
14603+
- sales_offers
14604+
attributes:
14605+
$ref: '#/definitions/SalesOfferAttributes'
14606+
relationships:
14607+
type: object
14608+
properties:
14609+
sales_invoice:
14610+
type: object
14611+
properties:
14612+
data:
14613+
type: object
14614+
properties:
14615+
id:
14616+
type: string
14617+
maxLength: 255
14618+
type:
14619+
type: string
14620+
maxLength: 255
14621+
description: Type of the resource
14622+
enum:
14623+
- sales_invoices
14624+
required:
14625+
- attributes
1444414626
ShipmentDocumentAttributes:
1444514627
type: object
1444614628
properties:

0 commit comments

Comments
 (0)