This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { browserHistory } from 'react-router' | |
| import { callApi } from '../middleware/api' | |
| export const LOGIN_REQUEST = 'LOGIN_REQUEST' | |
| export const LOGIN_SUCCESS = 'LOGIN_SUCCESS' | |
| export const LOGIN_FAILURE = 'LOGIN_FAILURE' | |
| function requestLogin(creds) { | |
| return { | |
| type: LOGIN_REQUEST, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const BASE_URL = 'http://localhost:8001/' | |
| export async function callApi(endpoint, body, method, authenticated) { | |
| const token = localStorage.getItem('id_token') || null | |
| let config = {} | |
| if (authenticated && token) { | |
| config = { | |
| method, | |
| headers: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "secoes": [ | |
| { | |
| "id": 1, | |
| "description": "Seção 01", | |
| "quadras": [ | |
| { | |
| "id": 163, | |
| "armazem": null, | |
| "description": "A", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "loteLocal":{ | |
| "id":13080, | |
| "bloco":{ | |
| "id":1947 | |
| } | |
| }, | |
| "blocoDestiny":{ | |
| "id":"1965" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "loteLocal":{ | |
| "id":13076 | |
| }, | |
| "blocoDestiny":{ | |
| "id":"1932" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "customer":{ | |
| "id":1334, | |
| "name":"ADEJAR ALVES DE ANDRADE", | |
| "document":null | |
| }, | |
| "product":{ | |
| "id":20, | |
| "code":"777", | |
| "description":"CAFE BIG BAG" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "customer":{ | |
| "id":471, | |
| "name":"ADAO NOGUEIRA PAIM", | |
| "document":null | |
| }, | |
| "product":{ | |
| "id":20, | |
| "code":"777", | |
| "description":"CAFE BIG BAG" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "volume":"10", | |
| "weight":"10", | |
| "loteLocal":{ | |
| "id":13027 | |
| }, | |
| "user":{ | |
| "id":1 | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.IOException; | |
| import javax.servlet.Filter; | |
| import javax.servlet.FilterChain; | |
| import javax.servlet.FilterConfig; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.ServletRequest; | |
| import javax.servlet.ServletResponse; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; | |
| import org.slf4j.Logger; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "result":[ | |
| [ | |
| [ | |
| { | |
| "id":"968", | |
| "description":"01", | |
| "volume_max":"360", | |
| "volume":"4", | |
| "status":"full", |