intersystems / intersystems/FirstLook-REST

newcoffeemaker doesn't return ID

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5
Forks
20
PR merge metrics
No merged PRs in 30d

Description

In documentation it says that it should return the ID of newly created coffeemaker but it doesn't.

Just add a line when creating status object in NewMaker method of class CoffeeMakerRESTServer... something like:
do:'$$$ISERR(sc) result.%Set("Message","New maker saved with ID: "_cm.%Id())

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the NewMaker method of the CoffeeMakerRESTServer class and the code that creates the status object. Confirm how the response currently represents a newly created coffeemaker, then verify that the response includes its ID as described in the documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.