Giter Site home page Giter Site logo

aws-lambda-xml-json's Introduction

aws-lambda-xml-json

A lambda function that converts XML to Json

Short Summary

Lambda Function Should

  1. Grab the XML "Metadata.xml" file from S3 bucket1.
  2. Parse the Metadata and convert it to json
  3. Store the .Json file in bucket2 with the original file name + the date at the end.
  4. Save the Metadata items in DynamoDB with the "b__" values being the primary key

Commentary

Deliverable will be:

  • An AWS Lambda Function built with NodeJS
  • I will provide you a Repo on GitHub that you will deploy the Lambda Function to.
  • You will develop the Lambda function using your AWS account and we should be able to deploy to our AWS account from the Github repo using "Aws SAM" commands.

Lambda Function Should

  1. Grab the XML "Metadata.xml" file from S3 bucket1.
  2. Parse the Metadata and convert it to json
  3. Store the .Json file in bucket2 with the original file name + the date at the end.
  4. Save the Metadata items in DynamoDB with the "b__" values being the primary key

We use an RESO based WebAPI to fetch Real Estate property listings. The API we use is http://sparkplatform.com/docs/reso/overview .

We're making Calls to the API to fetch information about Real Estate Listings. The REST API allows us to fetch json responses for the property information, but in the JSON response, some of the fields are encoded and showup as random values (b__2382903829832) as an example.

To get the value of the encoded "b__" value, the Spark RESO API provides an Odata Metadata file. This Metadata file is https://sparkapi.com/Reso/OData/$metadata and only provides a response in XML. It's a static XML file only updated weekly and it doesn't support any filter parameters or anything else.

The XML file will change weekly and may include very different values where the "b" values currently are. The lambda function should be able to accept files similar to this and process them as defined above.

Files Attached: -MetadataResponse.xml is the $metadata file that you would normally find in the S3 "bucket1"

aws-lambda-xml-json's People

Contributors

mickymots avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.