Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openapi: 3.0.0
- info:
- version: "1.0.1-oas3"
- title: FreeTradeAnalytics API
- description: The Data Inteface of FreeTradeAnalytics
- paths:
- /material:
- post:
- tags:
- - material
- responses:
- '200':
- description: Created without errors
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/post_okresponse'
- '205':
- description: Created with errors
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/post_witherrors'
- requestBody:
- $ref: '#/components/requestBodies/material'
- patch:
- tags:
- - material
- responses:
- '200':
- description: Updated
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/patch_response'
- requestBody:
- $ref: '#/components/requestBodies/material'
- /bom:
- post:
- tags:
- - bom
- responses:
- '201':
- description: Created
- requestBody:
- $ref: '#/components/requestBodies/bom'
- patch:
- tags:
- - bom
- responses:
- '204':
- description: No Content
- requestBody:
- $ref: '#/components/requestBodies/bom'
- /bom_item:
- post:
- tags:
- - bom_item
- responses:
- '201':
- description: Created
- requestBody:
- $ref: '#/components/requestBodies/bom_item'
- patch:
- tags:
- - bom_item
- responses:
- '204':
- description: No Content
- requestBody:
- $ref: '#/components/requestBodies/bom_item'
- /material_source:
- post:
- tags:
- - material_source
- responses:
- '201':
- description: Created
- requestBody:
- $ref: '#/components/requestBodies/bom'
- patch:
- tags:
- - material_source
- responses:
- '204':
- description: No Content
- /supplier:
- post:
- tags:
- - supplier
- responses:
- '201':
- description: Created
- requestBody:
- $ref: '#/components/requestBodies/supplier'
- patch:
- tags:
- - supplier
- parameters:
- - $ref: '#/components/parameters/rowFilter.supplierid'
- responses:
- '204':
- description: No Content
- /classification:
- get:
- tags:
- - classification
- parameters:
- - $ref: '#/components/parameters/rowFilter.materialno'
- - $ref: '#/components/parameters/rowFilter.legalregulationid'
- - $ref: '#/components/parameters/rowFilter.effectiveDate'
- responses:
- '200':
- description: OK
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/classification'
- '206':
- description: Partial Content
- post:
- tags:
- - classification
- responses:
- '201':
- description: Created
- requestBody:
- $ref: '#/components/requestBodies/classification'
- patch:
- tags:
- - classification
- parameters:
- - $ref: '#/components/parameters/rowFilter.materialno'
- - $ref: '#/components/parameters/rowFilter.legalregulationid'
- - $ref: '#/components/parameters/rowFilter.effectiveDate'
- responses:
- '204':
- description: No Content
- requestBody:
- $ref: '#/components/requestBodies/classification'
- externalDocs:
- url: 'https://www.freetradeanalytics.com/support/documentation/API'
- description: 'FreeTradeAnalytics API Documentation'
- servers:
- - url: 'https://virtserver.swaggerhub.com/freetradeanalytics/fta-api/1.0.1'
- - url: 'http://virtserver.swaggerhub.com/freetradeanalytics/fta-api/1.0.1'
- components:
- parameters:
- rowFilter.materialno:
- name: materialno
- required: false
- in: query
- schema:
- type: array
- items:
- format: string
- type: string
- rowFilter.materialversion:
- name: materialversion
- required: false
- in: query
- schema:
- type: string
- format: string
- rowFilter.bomid:
- name: materialversion
- required: false
- in: query
- schema:
- type: string
- format: string
- rowFilter.bomversion:
- name: materialversion
- required: false
- in: query
- schema:
- type: string
- format: string
- rowFilter.node_number:
- name: node_number
- required: false
- in: query
- schema:
- type: string
- format: string
- rowFilter.supplierid:
- name: node_number
- required: false
- in: query
- schema:
- type: string
- format: string
- rowFilter.legalregulationid:
- name: legalregulationid
- required: false
- in: query
- schema:
- type: string
- format: string
- rowFilter.effectiveDate:
- name: effectiveDate
- required: false
- in: query
- schema:
- type: string
- format: date
- requestBodies:
- material:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/material'
- description: material
- material_source:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/material_source'
- description: material_attribute
- bom_item:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/bom_item'
- description: bom_item
- bom:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/bom'
- description: bom
- classification:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/classification'
- description: classification
- supplier:
- content:
- application/json:
- schema:
- type: array
- items:
- $ref: '#/components/schemas/supplier'
- schemas:
- material:
- required:
- - version
- - materialno
- - mattype
- properties:
- materialno:
- maxLength: 250
- format: character varying
- type: string
- version:
- maxLength: 250
- format: character varying
- type: string
- mattype:
- maxLength: 3
- type: string
- enum:
- - 'FG'
- - 'CM'
- - 'RAW'
- - 'INT'
- description:
- Type of the material
- - `FG` - Finished good
- - `CM` - finished good from contract manufacturing
- - `RAW`- raw material or component
- - `INT`- intermediate product
- description:
- maxLength: 250
- format: character varying
- type: string
- active:
- format: boolean
- type: boolean
- err_flag:
- format: bigint
- type: integer
- cost:
- format: real
- type: number
- description:
- 'this is the standard sales price of the article, it is only used for material of mattype = "FG"'
- currency:
- maxLength: 3
- format: character varying
- type: string
- location:
- maxLength: 2
- format: character varying
- type: string
- bomid:
- format: string
- type: string
- description: |-
- Note:
- This is a Foreign Key to `bom.bomid`.<fk table='bom' column='bomid'/>
- custom_attributes:
- type: object
- additionalProperties: true
- type: object
- material_source:
- required:
- - materialno
- - supplierid
- properties:
- materialno:
- format: string
- type: string
- description: >-
- Note:
- This is a Foreign Key to `material.materialno`.<fk table='material'
- column='mateiralno'/>
- supplierid:
- format: string
- type: string
- description: >-
- Note:
- This is a Foreign Key to `supplier.supplierid`.<fk table='supplier'
- column='mateiralno'/>
- iso2:
- maxLength: 2
- format: string
- type: string
- cost:
- format: real
- type: number
- currency:
- maxLength: 3
- format: string
- type: string
- suppliermatno:
- format: string
- type: string
- active:
- format: boolean
- type: boolean
- type: object
- bom:
- required:
- - bomid
- properties:
- bomid:
- format: string
- type: string
- description: |-
- Note:
- This is a Primary Key.<pk/>
- version:
- maxLength: 250
- format: character varying
- type: string
- err_flag:
- format: bigint
- type: integer
- is_qty_relative:
- format: boolean
- type: boolean
- stop_explosion:
- format: boolean
- type: boolean
- bom_items:
- type: array
- items:
- $ref: '#/components/schemas/bom_item'
- type: object
- bom_item:
- required:
- - node_number
- - bomid
- - materialno
- properties:
- node_number:
- maxLength: 250
- format: character varying
- type: string
- bomid:
- format: string
- type: string
- description: |-
- Note:
- This is a Foreign Key to `bom.bomid`.<fk table='bom' column='id'/>
- materialno:
- format: bigint
- type: integer
- description: >-
- Note:
- This is a Foreign Key to `material.materialno`.<fk table='material'
- column='id'/>
- version:
- maxLength: 250
- format: character varying
- type: string
- err_flag:
- format: bigint
- type: integer
- ignore:
- format: boolean
- type: boolean
- quantity_per:
- format: real
- type: number
- type: object
- classification:
- required:
- - materialno
- - legal_reg_id
- properties:
- materialno:
- format: string
- type: string
- description: >-
- Note:
- This is a Foreign Key to `material.materialno`.<fk table='material'
- column='materialno'/>
- legal_reg_id:
- format: bigint
- type: integer
- description: >-
- Note:
- This is a Foreign Key to `legal_regulation.id`.<fk
- table='legal_regulation' column='id'/>
- code:
- maxLength: 250
- format: character varying
- type: string
- code_status:
- maxLength: 255
- format: character varying
- type: string
- auto_code:
- maxLength: 250
- format: character varying
- type: string
- new_code_compare:
- format: bigint
- type: integer
- auto_code_status:
- maxLength: 255
- format: character varying
- type: string
- status:
- maxLength: 250
- format: character varying
- type: string
- supplier_code:
- maxLength: 250
- format: character varying
- type: string
- units:
- maxLength: 250
- format: character varying
- type: string
- valid_from:
- format: date
- type: string
- valid_to:
- format: date
- type: string
- custom_attributes:
- type: object
- additionalProperties: true
- type: object
- supplier:
- required:
- - supplierid
- properties:
- supplierid:
- format: string
- type: string
- description: |-
- Note:
- This is a Primary Key.<pk/>
- name:
- format: string
- type: string
- contact:
- format: string
- type: string
- contactemail:
- format: string
- type: string
- phone:
- format: sting
- type: string
- post_response:
- properties:
- objectsAdded:
- format: int
- type: integer
- objectsRejected:
- format: int
- type: integer
- patch_response:
- properties:
- objectUpated:
- format: int
- type: integer
- objectUpdatedRejected:
- format: int
- type: integer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement