Skip to content

Examples for InterSystems ObjectScript with InterSystems IRIS community Edition docker container

License

Notifications You must be signed in to change notification settings

bqfan/objectscript-examples

 
 

Repository files navigation

ObjectScript Examples

  1. forked https://github.com/intersystems-community/objectscript-docker-template.git
  2. added ObjectScript Tutorial
  3. added sc.rest Tutorial and Sample Application: Contact List
$ iris session iris
USER>zpm
zpm:USER>install isc.rest
zpm:USER>load -dev /home/irisowner/dev/src/samples/phonebook

Try out the CRUD operations

From your REST client, try the following:

To allow unauthenticated access for this sample, you must give the web application the %All role. To do this:

  • Access to http://localhost:<port>/csp/sys/%25CSP.Portal.Home.zen?$NAMESPACE=%25SYS

  • Click System Administration > Security > Applications > Web Applications.

  • Select /csp/USER/phonebook-sample/api

  • In section Security Settings/Allowed Authentication Methods: Select both Unauthenticated and Password.

  • Click Save, then the Application Roles tab.

  • Select the %All role from the Available roles.

  • Click the right arrow (select) button to move the %All role to the Selected roles.

  • Click the Assign button.

In Postman:

  • Set the "Accept" header to "application/json"
  • Set the "Content-Type" header to "application/json"
  • POST a JSON body of {"name":"Flintstone,Fred"} to /csp/user/phonebook-sample/api/contact
  • PUT a JSON body of {"name":"Rubble,Barney"} to /csp/user/phonebook-sample/api/contact/1
  • GET /csp/user/phonebook-sample/api/contact/1 - you should see the result of the change you just made.

About

Examples for InterSystems ObjectScript with InterSystems IRIS community Edition docker container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ObjectScript 98.5%
  • Dockerfile 1.5%