Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
DonBakke
About
- Username
- DonBakke
- Joined
- Visits
- 3,225
- Last Active
- Roles
- Administrator
Comments
-
@BarryStevens - Yes, that is the right way to handle it. Something I would like to do sometime is update Error_Services so it supports different levels of errors. Some errors are innocuous and shouldn't affect behavior downstream. This is one of tho…
-
To be fair to you, methods and services are interchangeable terms...especially with BASIC+ procedures that provide "commuter module" structures. The Utility() function uses the term "service", Set_Printer() uses the term "message", and Repository() …
-
No. You are probably referring to this sentence from the How do I add hypermedia controls to a resource? article: In keeping with the spirit of HTML hypermedia controls, the SRP HTTP Framework supports a custom property called _forms. It serves the …
-
Just curious, what does "ssp" mean to you? I've already assumed it meant "system stored procedure" (i.e., a Revelation Software provided routine).
-
You are not completely wrong. Every "resource" has its own stored procedure. So your "job" resource - even though it is a sub-resource to "bsmob_Jobclockon" - will have its own "JOB_API" stored procedure.
-
I get it. Lot's to learn. Here is the relevant text: How do I create an API? When creating an API you are either creating a new resource coupled with one or more supported HTTP methods or you are updating an existing resource by adding new support…
-
Gotcha. Well, I do understand the desire to keep your stored procedures sorted. However, this approach sort of moves away from the appeal of Semantic URLs (and RESTful design) and turns it into more of an RPC (remote procedure call) design, which is…
-
Did you click the Create APIs button again after you added that "job" resource?
-
You can drag the top-level resources up and down to group together.
-
It is passed in through the OECGI payload.
-
@BarryStevens - This was a bug in a low-level service that only occurred when the name of your resource started with the same letters as your API root. In this case, your resources started out as "API" or "api" and your API root is also "api". I hav…
-
The HTTP Framework gets the registry values you are referencing from the OECGI payload. It doesn't have to query the registry. (Once upon a time it did do that, but that was problematic because we made assumptions about the path to the correct OECGI…
-
Ah...okay. "methods" means something specific in HTTP/REST (e.g., GET, POST, PUT, etc.). We refer to these as services. Yes, these are official.
-
Missing "methods"?
-
The SRP Editor uses the entity name to remove the executable rather than the name you indicated in the signature of the stored procedure. Having said that, I do recommend updating the name in the signature to match the name of the entity to avoid OI…
-
I applaud your tenacity to work through this. I think, however, you would greatly benefit from some training. If you are new to OpenInsight, there is a lot of ground that can be covered with formal or informal training. We are an ATC (authorized tra…
-
I appreciate the explanation of what you are attempting to do. There are a few things that we need to go over. Some of this might be already known to you, but since you said you were new to OpenInsight, I am going to err on the side of caution. Whe…
-
Is the OLE control you added to the form specifically the SRP Panel control?
-
How vastly different from the version 1 days :) That's an understatement.
-
You are correct on both accounts. The Authorization header contains the (typically encoded and/or encrypted) credentials. You could get this using HTTP_Services('GetRequestHeaderField', 'Authorization'), but then you would have to decode it yourself…
-
I think you are correct. It had been awhile since I looked at this code. We do have built-in caching in the HTTP_Resource_Manager_Services module. This is managed by this equate: Equ CacheTTL$ to 300 ; // Allow cached data to only be fresh …
-
I am very aware of your request (especially from Revelation) for such a tool. While I think something could be developed that would provide some value, I would also want to caution against heavy reliance upon this tool. Applications and their databa…
-
The UD 5 did not introduce any performance benefits. It added support for: * VSS integration for better backups while running live. * Encryption over the wire. * Auto-recovery if OI disconnects from the server. I have yet to see the auto-r…
-
@Opto_Will I was always under the impression that your esteemed predecessor simply didn't understand the need for the UD and thus got along without it. However, I made it very clear this was dangerous and unsupported. As Barry noted, there can be …
-
Did you actually click the Apply button to save the resource configuration? The _forms content is being generated by the entry point API. You can read about it in the how do I add hypermedia controls to a resource? article.
-
That is correct.
-
If you choose to make /api your API entry point, then yes. But this is optional and part of the configuration. Having "api" repeated twice is redundant so one might go with these options: api.website.com/webapis api.website.com/restapis api.website…
-
No. Different people have different sub-domains and/or paths. We like to use api.website.com but it varies on the client and available resources.
-
Yes, you should use the HTTP Framework Setup utility to identify resources. This utility will then auto-generate (if you so desire) your API code template. A resource ID is a unique identifier to a resource. Hence, if your resource is "customer" th…
-
No. This is me not being very careful to remove temporary code for testing before building the official RDK build. Please remove line 7 and 8. P.S. We don't use the "call" statement other than for quick test purposes.