Search found 8 matches

by Catt
Mon Sep 22, 2025 9:19 am
Forum: Questions & Answers
Topic: Convert LANSA RDML/RDMLX into text files
Replies: 1
Views: 17020

Re: Convert LANSA RDML/RDMLX into text files

My approach would be to install a version of LANSA with version control enabled. So when installing specify that it is an independent workstation to VCS master - https://docs.lansa.com/16/en/lansa041/index.htm#lansa/l4winsb4_0197.htm%3FTocPath%3DInstall%2520or%2520Upgrade%2520LANSA%2520on ...
by Catt
Wed Jul 30, 2025 8:35 pm
Forum: Questions & Answers
Topic: Any way to get the server routine name where I am?
Replies: 3
Views: 197442

Re: Any way to get the server routine name where I am?

I can't seem to find a way, either. Perhaps there can be an enhancement request made to have it stored like the component is.
by Catt
Sat Sep 14, 2024 12:47 am
Forum: Questions & Answers
Topic: Secret Management for JWT Secure APIs
Replies: 4
Views: 16484

Re: Secret Management for JWT Secure APIs

You might want to consider soft coding the secret and having it stored in an encrypted table. Then you can retrieve it using a fetch from the table.
by Catt
Sat Jul 23, 2022 1:07 am
Forum: Questions & Answers
Topic: Web API Wizard- receiving multiple requests in one structure
Replies: 7
Views: 30106

Re: Web API Wizard- receiving multiple requests in one structure

Further, if adding a request in after the wizard has done it's work you'll need to put in a Define_Com Class(#Com_Home.xxRequestTypeName) statement at the top of the server routine. xxRequestTypeName just being replaced by the name of your request as defined in Types. Then further down once in the ...
by Catt
Sat Jul 23, 2022 12:56 am
Forum: Questions & Answers
Topic: Web API Wizard- receiving multiple requests in one structure
Replies: 7
Views: 30106

Re: Web API Wizard- receiving multiple requests in one structure

You might struggle using the verb get because I think it doesn't allow for a request body. I think the wizard generates most of the RDMLX for the routine. The request also needs to be defined in the Path/Operations section within the request tab.
by Catt
Fri Jul 22, 2022 1:26 am
Forum: Questions & Answers
Topic: Restful API - Nested JSON objects
Replies: 4
Views: 12033

Re: Restful API - Nested JSON objects

Is this V15 you're creating the API in? If so there are some tutorials on Learn LANSA. I've recently been working on some APIs that are nested so if that isn't sufficient I can provide some examples of how to do this.
by Catt
Thu Jun 20, 2019 6:00 pm
Forum: Questions & Answers
Topic: Retrieving API request body
Replies: 6
Views: 13821

Re: Retrieving API request body

Thank you :)
by Catt
Mon Jun 10, 2019 8:09 pm
Forum: Questions & Answers
Topic: Retrieving API request body
Replies: 6
Views: 13821

Retrieving API request body

Currently creating a web API for publishing, however having issues coding to access the request body. At present I have the response defined in the server routine definition like : Srvroutine Name(APItut4) Response(*HTTP #uoHTTP4)

I've tried using variations of the .request.content intrinsic on ...