972 reputation
414
bio website
location
age
visits member for 3 years, 10 months
seen 2 days ago

Oct
3
comment How do I design my application to use REST for itself?
Thanks. Now I'm starting to see the need for things like Angular.js.
Oct
2
comment How do I design my application to use REST for itself?
Seems that all tutorials go for the consumer of services, but they never talk about your own app consuming your own services. I guess I was the only one asking.
Oct
2
accepted How do I design my application to use REST for itself?
Oct
2
comment How do I design my application to use REST for itself?
In your Symfony example, do you think that is proper? Is that what you mean?
Oct
2
revised How do I design my application to use REST for itself?
added 944 characters in body
Oct
2
comment How do I design my application to use REST for itself?
I do appreciate everyone's answer. I really do, but this doesn't really answer my question. Where do I put the HTTP verbs? Do I put it in a URL in my form's action? Do I put it in a hidden input somewhere? Do I do it all in AJAX and put the Type: I want? Where does this information go in my client that I'm saving my data to? If I use curl, that isn't helping me with my client's design. It only tells me my API is working for someone else that consumes it via CURL or some other library. I'm doing everything from an HTML page client.In other words, I cannot use all the HTTP verbs in HTML.
Oct
2
comment How do I design my application to use REST for itself?
I know our craft is complex by nature for the most part, and I can build it, but that seems to be really complicated for what I'm asking to do. Can it not be done without AJAX? If I do use AJAX with my "Type:" qualifier, such as in jQuery, aren't I just making up a type there? I mean can't I put any kind of type there? It's just that I happen to be adhering to the REST architecture that in reality isn't supported in HTTP?
Oct
2
comment How do I design my application to use REST for itself?
Why would it do this? Is this solely so it can be RESTful, having that architecture, even though you cannot really use those verbs?
Oct
2
comment How do I design my application to use REST for itself?
But how can I do that if the form tag does not allow PUT/DELETE requests to be sent? Say I want to use no javascript AJAX as you said. How do I use the HTTP verbs for an all internal application (no client), just my server. I also think my notions of client and server are messed up. In my app, aren't I the client and the server? The front end and back end? I do not have other consumers other than myself.
Oct
2
asked How do I design my application to use REST for itself?
Sep
2
awarded  Custodian
Sep
2
reviewed Approve suggested edit on How do I keep my classes in MVC from becoming bloated?
Sep
2
comment In MVC design, do I use a base class over an interface?
I guess I could say calling super, from language X.
Sep
2
comment In MVC design, do I use a base class over an interface?
Does that mean in the constructor of your concrete you do parent::__construct();, so you don't have to keep typing in $db = new PDO(....) or mysqli...?
Sep
2
revised In MVC design, do I use a base class over an interface?
edited title
Sep
2
asked In MVC design, do I use a base class over an interface?
Sep
2
comment application logic, business logic, models, controllers - where to put the application's brains?
@ErikReppen "It's also a heavily loaded marketing term that carries more "serious-sound" weight than practical use to most." That's the truth.
Sep
1
revised How do I keep my classes in MVC from becoming bloated?
added 766 characters in body
Sep
1
asked How do I keep my classes in MVC from becoming bloated?
Aug
28
comment Is routing a site with RESTful not the best when you have very long URLs?
@Snowman I thought it was a design question, so I asked it that way.