Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Add REST Service Classes To VS Code Project

Question
Michael Davidovich · Jul 26, 2022

Add REST Service Classes To VS Code Project

I have successfully created REST service classes on my local IRIS server following this book: Using the /api/mgmnt/ Service | Creating REST Services | InterSystems IRIS Data Platform 2021.2

I am now 1) trying to edit impl.cls in VS Code and 2) export it to my local repo so I can push to the remote repo.

When I click on my project in VS Code and 'Add to project' and choose the new package, spec.cls and impl.cls, I get the following error:

ERROR #5540: SQLCODE: -114 Message: Unable to acquire lock for INSERT of child row for parent table '%Studio.Project' with parent id = 'Default_project'

Has anyone experienced this?

As for exporting to my local repo, I think it's just a matter of right clicking and selecting 'Export'? Correct?

Thanks in advanced!

#REST API #InterSystems IRIS for Health
$ZV: IRIS for Windows (x86-64) 2020.1.1 (Build 408U) Sun Mar 21 2021 22:04:09 EDT

Source URL:https://community.intersystems.com/post/add-rest-service-classes-vs-code-project