Webapi Project - . NET

Asked

Viewed 35 times

1

I am developing an Asp.Net Webapi application (first REST application).

So far everything is ok, even because I’m in the testing phase using Postman. I believe I must complete this first stage within two weeks.

The project has the layers of Service, Domain, Infrastructure, Webapi, Validations and Dependency Injection, all separated by projects within the same solution.

The next step will be to develop the "Layer" that will serve as a View to users.

I should use Angularjs2.

Now comes my doubt.

For this layer should I create a new project? If yes, which type are the Views HTML pages?

The whole project will be hosted on the same server. I hope I was clear with my doubt :) Flávio Oliveira

1 answer

3


For this layer I must create a new project?

Not necessarily. For example, in a similar project I have a structure where I store my ORM classes in a printer called model, my API endpoints in controllers and the content Angular in frontend:

inserir a descrição da imagem aqui

The decision to create a separate project can simply be organizational in nature.

  • Onosendai, in your example you are including these folders within Webepi project?

  • @urlflavio Yes, this is the case.

  • 1

    OK Onosendai, I will follow this example. VLW by force!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.