Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

AusMarkB

About

Username
AusMarkB
Joined
Visits
3,260
Last Active
Roles
Member

Comments

  • Beauty. Thank you. Happy to do it that way. Just making sure I wasn't missing something already available.
  • Hey Barry, Yes it's happening though upon rereading my post I realise I just assumed everyone else knew what I was talking about because I mean, why wouldn't they, I've had my head in the code for an hour.... The issue only arises if the key is a …
  • Thanks Jared. I'll keep the additional rule in mind if I decide I need it. So far as the additional slash, that was intentional as per this post. FWIW, in the rewrite rule I also had to add a '/' within the brackets within the Pattern. If I didn't…
  • Thanks Barry. Adding the asterisk yet leaving the Wildcards as Regular Expressions worked in the rewrite url test space. Unfortunately Postman didn't catch on and still returned the 404. Must be closer though.
  • Just for example purposes Here's the url rewrite
  • Don, This was just a case of me still exploring the sample code. The beginning of the case statement for the entry_point service is Begin Case Case RemainingURL _EQC '' // There is no remaining URL, which means this is the end poin…
  • I've added 'services' to the entry_point case statement so now http://mywebpage/api/services achieves the end goal. I'd still welcome any suggestions as to help my understanding. Thanks.
  • Thank You
  • Yes and no. It didn't help in this case as I will still use the edittable and have already implemented the smoke and mirrors anyway. So why Yes? I thought I had read something like that somewhere which prompted me to ask the question in the first…
  • I'll wait and see how that pans out
  • This in the GetItem gosub looks like the simplest way to do the trick If Len(NextService) then * HTTP_Services('RunHTTPService', NextServiceHandler, NextService, NextURL) HTTP_Services('RunHTTPService', NextService, NextURL, "") end
  • Thanks Don. You've addressed several questions there that I wasn't even sure I knew how to ask. The first few times I read through the documentation I couldn't understand why /invoices wasn't a top-level service but then I read a different example …
  • Thanks Barry but I think you misunderstood the question. I'm working from the documentation and trying to understand what I'm reading. I'm getting there, slowly. I wasn't asking for a different url but rather how the frameworks were meant to work w…
  • Verified. Turns out the dbt doesn't contain the tables I thought it did. If I try and read from a table that is attached, amazingly it opens. Now I just need to figure out when and how to attach the correct tables. See I knew this was the right p…
  • Hold the thought. Looks like it's probably just me. I'll confirm and then verify
  • Don, What I did with the controller routine was to simply save a copy in our app that inherits from frameworks. The initial intent was to copy all the routines up so I could hack them as much as I want and not lose the originals. Not trying to acco…
  • Yes it is. I copied and renamed the http_mccp controller into the desired app and threw in a debug and debugged
  • Restate as much as you like. If I see it often enough, it will eventually sink in
  • ... and then add a Case Service _EQC 'getversion' in http_entry_point_services? The mud is slowly dissipating.
  • Yep. I wrote my rewrite rule by blindly following the blog article making no attempt to understand. Then I blindly followed the http frameworks documentation attempting to understand but didn't quite. Understandably both were written based on certa…
  • Looks good Don. Am getting all the expected errors now. Now I can start coding real questions and answers
  • Learning lots of new stuff today :) Barry, thought this one might be of interest to you. I found my rewrite rule wasn't working quite the way I wanted so I started to experiment with it. One of the things I found was that if I changed the 'Rewrite…
  • and that probably meant nothing to all those Non Aussies so I'll rephrase. Yes send it as FRAMEWORKS. Thanks.
  • Is FRAMEWORKS. Is Good
  • Thanks Barry. Hadn't forgotten. Hadn't got that far yet. :) Still at the front door just seeing if I can get in hence the nonsensical url 'what_did_who_say' Now I know to keep an eye out for that though, so thanks.
  • Spending most of the day on it today so please do.
  • Thank you Gentlemen. Barry, Mark, >>service of relevance in this address 'www.myapplication.com/api/customers/5678/invoices/1234' is 'customers'. the ssp name would be http_customers_services Yes. Understood. What I hadn't understood was …
  • The partial good news is that my 404 error returns what I expected: 404 api is not a valid service request within the HTTP_ENTRY_POINT_SERVICES module. I agree with your partial good news. I was happy to get that error too. ..... just not so ear…
  • So the above comes into the controller routine as this: hence the entrypoint services are trying to distribute the service 'e94http', which is understandable though from my perspective inconsistent with the example in the documentation where it i…
  • So with a rewrite rule in place, this address http://localhost/api/what_did_who_say still returns the error from htttp_entry_services that 'e94http' is not a valid service. So that implies to me and please correct me if I'm wrong, that the rewrit…