In VS Code, you can create a debugger launch configuration for your API endpoint. Set the "request" attribute to "attach" and the "processID" attribute to the job ID of the production component that services your API. Set breakpoints and run this configuration. Then when a request arrives, you can debug the service and endpoints while viewing the REST request contents.
Here is a reference video; example starts at 4:00.
Sergei's picture shows a menu located in the InterSystems View. The ISC logo for that view appears on the left of VS Code once you have a ObjectScript connection. You can configure Export settings, to an extent, as {objectscript.export: {}} in workspace or user settings.
Bukhtiar, I have forwarded your question to OnlineTraining@InterSystems.com. You can expect a response shortly to the email address on file for your Learning account.
OnlineTraining@InterSystems.com is the fastest way to get answers about enrollments or anything related to Learning.InterSystems.com
You are getting an"invalid JSON" error because the JSON you're POSTing is itself the OpenAPI 2.0 JSON Schema File. It defines how the standard works in JSON.
Instead, you'll need to post an OpenAPI document, abiding by those standards, defining your RESTful service. More info here: https://swagger.io/specification/
go to post
Good point. In the example I gave, the request is forwarded to a business process which has a job ID.
go to post
In VS Code, you can create a debugger launch configuration for your API endpoint. Set the "request" attribute to "attach" and the "processID" attribute to the job ID of the production component that services your API. Set breakpoints and run this configuration. Then when a request arrives, you can debug the service and endpoints while viewing the REST request contents.
Here is a reference video; example starts at 4:00.
https://www.youtube.com/watch?v=diLHwA0rlGM
go to post
As Ben promised, here is the Learning Services link for Tim's presentation: https://learning.intersystems.com/course/view.php?id=1928
And here is the InterSystems Developers YouTube link for Tim's presentation: https://www.youtube.com/watch?v=elVQEU9MitE
go to post
Here's the correct link for the server-side applications learning path: https://learning.intersystems.com/course/view.php?name=IRIS%20Server%20Side
And I also recommend this course on RESTful services: https://learning.intersystems.com/course/view.php?name=REST%20Services
go to post
Sergei's picture shows a menu located in the InterSystems View. The ISC logo for that view appears on the left of VS Code once you have a ObjectScript connection. You can configure Export settings, to an extent, as {objectscript.export: {}} in workspace or user settings.
See the README on the repository: https://github.com/intersystems-community/vscode-objectscript
And a few more learning materials: https://learning.intersystems.com/course/view.php?name=VSCodeRG
go to post
Bukhtiar, I have forwarded your question to OnlineTraining@InterSystems.com. You can expect a response shortly to the email address on file for your Learning account.
OnlineTraining@InterSystems.com is the fastest way to get answers about enrollments or anything related to Learning.InterSystems.com
go to post
Ikara, No problem!
I have already contacted documentation about this. I agree; the current language is ambiguous.
go to post
You are getting an"invalid JSON" error because the JSON you're POSTing is itself the OpenAPI 2.0 JSON Schema File. It defines how the standard works in JSON.
Instead, you'll need to post an OpenAPI document, abiding by those standards, defining your RESTful service.
More info here: https://swagger.io/specification/
go to post
Ramesh, did you ever resolve this question?