Suppose I have a web application named "/my/api", with a dispatch class configured (a subclass of %CSP.REST), and I want to be able to respond to:

GET /my/api/something/:id

by loading an object with the specified ID and returning it as JSON

GET /my/api/another-thing/data.js

Last answer 24 May 2017 Last comment 24 May 2017
0   0 4
521

views

0

rating

On my "Posts" page (https://community.intersystems.com/user/10056/posts), the title is "Posts (#)".

On my "Comments" page (https://community.intersystems.com/user/10056/comments), the title is "Comments (#)".

On my "Answers" page (https://community.intersystems.com/user/10056/answers), the title is "Evgeny Shvarov":

Last answer 13 December 2016 Last comment 7 December 2016
0   0 2
111

views

0

rating

Given a complex method flagged with [ SqlProc ] so it is available as an SQL stored procedure, what's the best way to report a non-system error detected in that method - say, for example, an error %Status - so that the SQL query calling it fails descriptively? Is it best to create and throw an exception, or are there special % variables involved (like in a trigger)? I haven't been able to find an answer in the documentation.

Thanks in advance!

Last answer 17 August 2016
0   0 2
0

comments

182

views

0

rating

I've been trying to write a method to compare two local variables, which may be arrays, for "equality" - that is, to see if they have all the same subscripts (if they're arrays) and values. This is the best I've come up with so far - are there any better/simpler approaches out there?

Last answer 11 July 2016
+ 1   0 1
0

comments

707

views

+ 1

rating