{
    "openapi": "3.0.0",
    "info": {
        "title": "DrC Oracle Integration",
        "version": "0.1"
    },
    "paths": {
        "/api/v1/auth/login": {
            "post": {
                "tags": [
                    "Autenticação"
                ],
                "summary": "Endpoint para pegar o token e utilizar nas demais requisições.",
                "description": "Retorna o bearer token.",
                "operationId": "auth",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "usuario": {
                                        "type": "string"
                                    },
                                    "senha": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "ok",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "access_token": {
                                            "description": "JWT access token",
                                            "type": "string"
                                        },
                                        "token_type": {
                                            "description": "Token type",
                                            "type": "string"
                                        },
                                        "expires_in": {
                                            "description": "Token expiration in miliseconds",
                                            "type": "integer"
                                        }
                                    },
                                    "type": "object",
                                    "example": {
                                        "data": {
                                            "access_token": "eyTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkY",
                                            "token_type": "bearer",
                                            "expires_in": 3600
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request"
                    }
                }
            }
        },
        "/api/v1/sync/prices/from/oracle": {
            "get": {
                "tags": [
                    "Oracle"
                ],
                "summary": "This endpoint Search all products created from a date and save to S2",
                "operationId": "b286700b63e6af6b6637d0bc72fafc6d",
                "responses": {
                    "200": {
                        "description": "Success"
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/api/v1/sync/product/from/s2": {
            "post": {
                "tags": [
                    "S2"
                ],
                "summary": "Change the description and activate and desactivate a product",
                "operationId": "d4cb58f2cce48c09c31b63406cd379b9",
                "parameters": [
                    {
                        "name": "ItemNumber",
                        "in": "query",
                        "description": "ItemNumber is the same as product id",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "ItemStatusValue",
                        "in": "query",
                        "description": "Active or Inactive, the first letter must be capitalized",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "ItemDescription",
                        "in": "query",
                        "description": "Description of product",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "ItemClass",
                        "in": "query",
                        "description": "The itemClass is the product group",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success"
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "name": "bearerAuth",
                "in": "header",
                "bearerFormat": "JWT",
                "scheme": "bearer"
            }
        }
    },
    "tags": [
        {
            "name": "Oracle",
            "description": "Gets data from Oracle"
        },
        {
            "name": "S2",
            "description": "Gets data from S2"
        }
    ]
}