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.
-
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
-
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.
-
The API allow the user to retrieve all people in the dataset.
- Open
Lead.Backend.slnin Visual Studio. - Run the solution.
In a command line, run these commands from the root of the repo:
cd Lead.Backend
dotnet run
This solution has a file called LeadsController.cs that will help you get started. A single GET endpoint has been provided.
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.
