diff --git a/package-lock.json b/package-lock.json index 9fbb11e..18e22a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2352,9 +2352,9 @@ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" }, "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "requires": { "for-in": "^1.0.2", "is-extendable": "^1.0.1" 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: