DEV Community

Benjamin Fadina
Benjamin Fadina

Posted on

CREATING DOT NET APIS AND MICROSERVICES USING CRAFTSMAN (WRAPT) LESSON ONE CREATING BASIC .NET WEB API WITH CRAFTSMAN

In this video, I introduce you to Craftsman, a powerful web API creation tool developed by Paul Devito. Let's dive into the details:

  1. GitHub Repository: You can find the Craftsman GitHub repository at this link. Paul Devito actively maintains it, and it's a great resource for exploring the tool.

  2. Craftsman Documentation: The official website for Craftsman hosts comprehensive documentation. It covers everything you need to know about using Craftsman effectively. https://wrapt.dev/docs/how-it-works

  3. Creating a RecipeManagement Web API:

    • We start by defining the domain, entity, and entity properties in a YAML file. This structured approach ensures clarity and consistency.
    • Next, we run the Craftsman command to create the web API. Craftsman streamlines the process, making it efficient and straightforward.
    • Once the API is generated, we open the solution file in Visual Studio. The solution comprises the web API project, which adheres to the CQRS (Command Query Responsibility Segregation) principle, and the associated test project.
    • To ensure data integrity, we generate migrations for the database.
    • Finally, we test the API using Swagger, a powerful tool for API exploration and testing.
  4. Accessing the Completed Solution:

Craftsman simplifies web API development, and with this walkthrough, you'll be well-equipped to create robust APIs. Happy coding! 🚀🔧

Top comments (0)