Last active
          February 25, 2019 22:29 
        
      - 
      
- 
        Save loredanacirstea/591ef2d36660469909b0a6733bfe2250 to your computer and use it in GitHub Desktop. 
  
    
      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 baseUrl = 'http://192.168.1.141:5000/api/v1'; | |
| const httpClient = axios; | |
| const web3 = undefined; | |
| let i_id_1 = null; | |
| const pets_id_get_1 = async function(id) { | |
| const url = `${baseUrl}/pets/${id}`; | |
| let Error; | |
| const Pet = (await httpClient.get(url) | |
| .catch((err) => Error = err)) | |
| .data | |
| return {Error, Pet}; | |
| } | |
| ; | |
| const pets_post_2 = async function(pet) { | |
| const url = `${baseUrl}/pets`; | |
| let Error; | |
| const Pet = (await httpClient.post(url, pet) | |
| .catch((err) => Error = err)) | |
| .data | |
| return {Error, Pet}; | |
| } | |
| ; | |
| (async function PipedFunction0(i_id_1) { | |
| let result; | |
| result = await pets_id_get_1(i_id_1); | |
| const o_Error_1 = result.Error; | |
| const o_Pet_1 = result.Pet; | |
| result = await pets_post_2(o_Pet_1); | |
| const o_Error_2 = result.Error; | |
| const o_Pet_2 = result.Pet; | |
| return {o_Error_1, o_Error_2, o_Pet_2}; | |
| })(i_id_1); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment