|
See "4." in The Lounge[^]
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
It's Mexican Maths, not religion!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I think more it is disrespectful
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Now don't be cross with him!
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
OriginalGriff wrote: It's Mexican Maths, Now you're just being racist.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
OriginalGriff wrote: If Jesus died for our sin, who died for our cos and tan?
Hypothenus did, I think.
noop()
|
|
|
|
|
That is s very triggy question!
Socialism is the Axe Body Spray of political ideologies: It never does what it claims to do, but people too young to know better keep buying it anyway. (Glenn Reynolds)
|
|
|
|
|
Here in Norway, Easter was sunny over most of the country, so the tan came in place in a perfect manner.
|
|
|
|
|
Member 7989122 wrote: Here in Norway, So why do you have a US flag instead of the Norwegian version?
7989122 sure seems like a Norwegian surname.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
All the angles in heaven?
|
|
|
|
|
I am fairly new to development and have been asked to look at creating a MVP Rest Web Service so our clients can query a database. I am looking for advice. I have scoured the internet but have not found a lot of specific examples. Any help or advice would be gratefully received
|
|
|
|
|
So, assuming that by MVP you mean Model-View-Presenter, you're highly unlikely to find much as far as examples go. For one, the in-vogue architecture for web applications is actually a cousin of that pattern, the MVC (Model-View-Controller) architecture. Second, web services are intended to exist at the data access layer and (at least partially) the business logic layer of n-tier applications, so presentation logic is not a consideration for a pure REST API.
Suggestions for frameworks or platforms will depend on what language you intend to use. You might want to ask in the language-specific forums about what technologies might give you a head start.
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
Thank You Nathan for your reply and advice.
I am sorry i should have mentioned that I am looking to write this in c#.
The internet is saturated with examples using Model View Controller and seems the way to go but for some reason I have been asked to use Model View Presenter, which on the face of it seems strange.
As it does not seem to easily translate to Model View Presenter.
I will look c# forums to see if this is possible.
Thank you again for your time and advice
|
|
|
|
|
REST services have controllers, the endpoint is in effect the controller.
To me it makes no sense to have a presentation layer or a view layer quite simply because REST does not serve a page but serves a response which will contain a header and a body generally containing JSON rather than HTML with CSS.
One pattern for a REST service is:
Controller - the endpoint
Orchestrator - receives request from the controller and serves response to the controller
Repository - basically the database connection
Model - a structure defining the data within requests and responses
MVC and MVP are patterns used for web pages - I have not seen those patterns used for REST services.
[I stand corrected by my post below where I have posted a tutorial to a Microsoft Web API MVC tutorial)
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
modified 21-Apr-19 15:31pm.
|
|
|
|
|
Thank you very much Guy for your advice and time.
|
|
|
|
|
|
Thank you very much Rick for your advice and time.
|
|
|
|
|
Maybe you're being asked for a "desktop" front end to a web service; in which case MVP sounds more reasonable (for the desktop app part).
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Well, MVP is a pattern, not a technology.
Choose the technology that best solves the problem (take a look at Web-Api). And make sure you follow the pattern.
|
|
|
|
|
Julian Michael wrote: MVP Rest Web Service Re-reading your post I wonder if you have misunderstood what the person asking you to do this work meant by MVP.
MVP can mean Model View Presenter or it can be Minimum Viable Product - I am going to put my bet on it being the latter.
I which case there will be Microsoft tutorials out there for how to create a WEB API REST service.
Where things get a bit tricky is the security side. You can usually knock up a basic REST service in a couple of hours.
Security considerations can add a bit of time to a project.
Tutorial: Create a web API with ASP.NET Core MVC | Microsoft Docs[^]
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Thank you Guy for the pointer, I have been spending a lot of time researching and the best route i believe would be using WEB API is the solution but wondered whether choosing .net or core would make too much of a difference. I understand core is new and cross platform
|
|
|
|
|
I agree with you regarding Web API.
As for .NET core it's not something I have experience with.
I would suggest not using it to begin with as it's probably worth getting something working with standard .NET and then if you really need to you can investigate porting it to core.
The reason I say this is because I am aware that core did require some workarounds in the past, which may now be fixed. You only really need to use core if you are not going to be hosting the API on a Windows server.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
modified 22-Apr-19 3:12am.
|
|
|
|
|
Thank you again Guy.
.net it is
Have a good Day......
|
|
|
|
|
You're welcome
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|