diff --git a/package-lock.json b/package-lock.json index 9fbb11e..9251e83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2002,9 +2002,9 @@ "integrity": "sha512-M7kLczedRMYX4L8Mdh4MzyAMM9O5osx+4FcOQuTvr3A9F2D9S5JXheN0ewNbrvK2UatkTRhL5ejGmGSjNMiZuw==" }, "js-yaml": { - "version": "3.12.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.2.tgz", - "integrity": "sha512-QHn/Lh/7HhZ/Twc7vJYQTkjuCa0kaCcDcjK5Zlk2rvnUpy7DxMJ23+Jc2dcyvltwQVg1nygAVlB2oRDFHoRS5Q==", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" diff --git a/spec/swagger.yaml b/spec/swagger.yaml index 3d9c82a..33557d5 100644 --- a/spec/swagger.yaml +++ b/spec/swagger.yaml @@ -6,18 +6,23 @@ info: url: 'https://apidocs.parasut.com/logo.png' backgroundColor: null description: > + Bir önceki API (V1) dökümantasyonuna [bu + bağlantı](https://api.parasut.com/docs) ile ulaşabilirsiniz + + # GİRİŞ ## API Hakkında - Paraşüt API'yi kullanmak veya görüşlerinizi + Paraşüt API henüz beta aşamasındadır ve sadece belli sayıda kullanıcıya + açıktır. Eğer beta test sürecine katılmak veya API hakkındaki görüşlerinizi bizimle paylaşmak isterseniz lütfen bizimle destek@parasut.com adresi - üzerinden iletişime geçiniz. + üzerinden bağlantıya geçiniz. - API'yi kullanarak Paraşüt verilerine ulaşabilir ve kendi yazdığınız + API'yi kullanarak Paraşüt veritabanına ulaşabilir ve kendi yazdığınız uygulamalar ile entegre edebilirsiniz. API vasıtasıyla Paraşüt Web arayüzü ile yapılan hemen her işlemi gerçekleştirebilirsiniz. @@ -477,6 +482,8 @@ tags: x-displayName: MAAŞ - name: SalesInvoices x-displayName: SATIŞ FATURASI + - name: SalesOffers + x-displayName: SalesOffers - name: ShipmentDocuments x-displayName: İRSALİYE - name: StockMovements @@ -7971,6 +7978,7 @@ paths: - sales_invoice_details - payments - tags + - sales_offers - sharings - recurrence_plans - e_archives @@ -8148,6 +8156,21 @@ paths: description: Type of the resource enum: - tags + sales_offer: + type: object + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - sales_offers in: body required: true responses: @@ -8176,6 +8199,7 @@ paths: - sales_invoice_details - payments - tags + - sales_offers - sharings - recurrence_plans - e_archives @@ -8282,6 +8306,7 @@ paths: - sales_invoice_details - payments - tags + - sales_offers - sharings - recurrence_plans - e_archives @@ -8457,6 +8482,21 @@ paths: description: Type of the resource enum: - tags + sales_offer: + type: object + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - sales_offers in: body required: true responses: @@ -8485,6 +8525,7 @@ paths: - sales_invoice_details - payments - tags + - sales_offers - sharings - recurrence_plans - e_archives @@ -8771,6 +8812,7 @@ paths: - sales_invoice_details - payments - tags + - sales_offers - sharings - recurrence_plans - e_archives @@ -8877,6 +8919,7 @@ paths: - sales_invoice_details - payments - tags + - sales_offers - sharings - recurrence_plans - e_archives @@ -8983,6 +9026,7 @@ paths: - sales_invoice_details - payments - tags + - sales_offers - sharings - recurrence_plans - e_archives @@ -9089,6 +9133,7 @@ paths: - sales_invoice_details - payments - tags + - sales_offers - sharings - recurrence_plans - e_archives @@ -9276,6 +9321,21 @@ paths: description: Type of the resource enum: - tags + sales_offer: + type: object + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - sales_offers in: body required: true responses: @@ -9304,6 +9364,7 @@ paths: - sales_invoice_details - payments - tags + - sales_offers - sharings - recurrence_plans - e_archives @@ -9357,6 +9418,77 @@ paths: type: array items: $ref: '#/definitions/Error' + '/{company_id}/sales_offers/{id}': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: Sales Offer ID + in: path + required: true + get: + tags: + - SalesOffers + operationId: showSalesOffer + summary: Show + description: '' + responses: + '200': + description: Teklif + schema: + type: object + properties: + data: + $ref: '#/definitions/SalesOffer' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' '/{company_id}/shipment_documents': parameters: - name: company_id @@ -14296,6 +14428,21 @@ definitions: description: Type of the resource enum: - tags + sales_offer: + type: object + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - sales_offers sharings: type: object properties: @@ -14441,6 +14588,41 @@ definitions: - products required: - attributes + SalesOfferAttributes: {} + SalesOffer: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - sales_offers + attributes: + $ref: '#/definitions/SalesOfferAttributes' + relationships: + type: object + properties: + sales_invoice: + type: object + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - sales_invoices + required: + - attributes ShipmentDocumentAttributes: type: object properties: