User bio
404 bio not found
Member since Jan 26, 2022
Posts:
Dan has not published any posts yet.
Replies:
Dan Goldman · Jun 22, 2022 go to post

I was not able to get the code to work.

Kill parameters

Merge parameters = %request.Data

Set genericRequest = ##class(Core.API.V1.Msg.GenericRequest).%New()

Set genericRequest.urlParameters = parameters

I was not able to get the code to work when my class had property

Property urlParameters As %String [multidimensional];

I was able to get it to work with the following.

Property urlParameters As %Library.ArrayOfDataTypes;  //property in generic request class

In Dispatch:

Set genericRequest.urlParameters = ##class(%Library.ArrayOfDataTypes).%New()

Set propName = $Order(%request.Data(""))

While (propName '= "") {

Set param = %request.Data(propName, 1)

do genericRequest.urlParameters.SetAt(propName, param)

Set propName = $Order(%request.Data(propName))

}

Dan Goldman · Apr 15, 2022 go to post

I am looking to try and generate a swagger spec from a persistent class.  The link to the above mentioned code is not working. Could you repost the link or add the code to generate the spec?

Thanks Dan

Certifications & Credly badges:
Dan has no Certifications & Credly badges yet.
Followers:
Dan has no followers yet.
Following:
Dan has not followed anybody yet.