Shopping application

Nandini S 20 Reputation points
2023-10-10T07:18:06.3333333+00:00

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 ?

Developer technologies | ASP.NET | ASP.NET API
{count} votes

1 answer

Sort by: Most helpful
  1. Dhiraj venkata phani 0 Reputation points
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.