Shopping application

Nandini S 20 Reputation points

To implement this application Should we use both ASP.NET web api and postman or any one?

do we need to create models for application in web api ?

ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
305 questions
{count} votes

1 answer

Sort by: Most helpful
  1. 2024-03-16T11:10:24.7633333+00:00

    Hi Nandhini

    Yes Postman can be used as testing tool for the API that you are developing in your WEB.API application , you can do the same by running API application with swagger also.

    As per the good practices you should have Models while working with API calls.
    So that when you return any responses from the API calls you will have standard pattern of giving the output
    For example :

    public class CartDTO
     public int Id {get;set;}
     public int Username{get;set;}
     public decimal Fee{get;set;}
    public class ResponseDTO
     public bool IsSuccessful{get;set;}
     public string Message{get;set;}
    0 comments No comments