Dofactory.com
Dofactory.com
 Back to list
Views:   5.9K
Replies:  1
Archived

Where is the better place for REST interface in Pattern in Action 4.5

Hi guys,
I would like to add a rest interface using Microsoft's new WEB API in Pattern in action 4.5 solution.
The correct place where you can enter the library containing the "api controller" is the service layer ?

And the web api controller project must contain directly reference to ActionService ?

Thank you in advance!

Vito Iacono, Sep 04, 2013
Reply 1
You have probably gotten this already figured out, but I'll put my two-cents in anyway.

Short answers:
  1. In your MVC application
  2. Preferably, yes

The WebApi does not need to be in your MVC application, but it's easiest if it is.  If you aren't using MVC, and instead using WebForms, or WPF, etc., then WebApi can be in it's own project.  But either way, it should directly reference the service layer methods.

King Wilder

King Wilder, Sep 21, 2014
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.