Skip to content

em2websolution/Lead

Repository files navigation

Lead Back-End

The center of Lead's product is the Demand Acceleration Platform (DAP). DAP allows users to interact with marketing lead data. A marketing lead is a person who shows interest in a company's products or services. Our customers need marketing leads that are correct and likely to generate business.

We are striving to build a world-class application with microservices that expose their functionality through RESTful APIs.

  1. The RESTful API include a Lead data model with the following properties:

    • First Name (mandatory)
    • Last Name (mandatory)
    • Email (mandatory)
    • Company (optional)
    • ZIP Code (optional)
    • Phone Number (mandatory)
    • Date Created
  2. The API allow the user to add a new lead to the dataset.

    • A persistent datastore isn't required. The datastore can instead be memory-based. But, the code should be designed in such a way that a persistent datastore could be substituted later.
  3. The API allow the user to retrieve all people in the dataset.

Infraestructure

alt text

Running in Visual Studio

  • Open Lead.Backend.sln in Visual Studio.
  • Run the solution.

Running from the command line

In a command line, run these commands from the root of the repo:

cd Lead.Backend
dotnet run

Writing code

This solution has a file called LeadsController.cs that will help you get started. A single GET endpoint has been provided.

Testing your code

With your solution running, navigate to https://localhost:44390/index.html to view the Swagger documentation.

Each endpoint has a "Try It Out" section that allows you to test.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors