Roundup Tracker - Issues

Issue 2551415

classification
Can not create rest endpoint using documentation
Type: behavior Severity: urgent
Components: API Versions: 2.5.0
process
Status: fixed fixed
:
: rouilj : rouilj, zapper63
Priority: high :

Created on 2026-04-08 14:21 by zapper63, last changed 2026-04-09 13:48 by rouilj.

Messages
msg8426 Author: [hidden] (zapper63) Date: 2026-04-08 14:21
Hi,

I can create a working rest endpoint (summary2) using the documentation with version 2.4 of Roundup. I can not create the same 
endpoint from the documentation using Roundup 2.5.
Is anything broken? I only get 400, 'An error occurred. Please check the server log' and  there is nothing more in the server log.
All the rest endpoints from Roundup 2.5 works fine but I can not  create  a working custom endpoint. I use the same Headers when 
trying to use summary2 as when I access the other Roundup rest endpoints.

This is the data from apache ssl_error_log:

File '/usr/local/python_roundup/lib64/python3.9/site-packages/roundup/rest.py', line 72, in format_object
code, data = func(self, *args, **kwargs)
TypeError: summary2() got an unexpected keyword argument 'input_payload'

Best regards,
Magnus
msg8427 Author: [hidden] (zapper63) Date: 2026-04-08 16:55
Hi,

I think I found the problem, the function parameter 'input' is now supposed to be 'input_payload'.

Best regards,
Magnus
msg8428 Author: [hidden] (rouilj) Date: 2026-04-09 03:53
Hello Magnus:

It looks like I changed it from input to input_payload because
the "input" variable was shadowing the built-in input function.

It is definitely a bug in the docs. I pushed a fix for the
rest documentation few minutes ago in changeset:   8563:909cf30c01c1.
I also need to update the upgrading guide so people can change their
endpoints.

Thank you for reporting this.

Sorry I missed it in the docs.

-- rouilj
msg8429 Author: [hidden] (rouilj) Date: 2026-04-09 04:25
Updated the upgrading doc in: changeset:   8566:e4191aa7b402

Closing.
msg8430 Author: [hidden] (rouilj) Date: 2026-04-09 13:48
Magnus,

If you can share, I would like to know:

How has your experience with Roundup been?

Overall is the documentation usable and complete?

What is your custom REST endpoint used for?

-- rouilj
History
Date User Action Args
2026-04-09 13:48:43rouiljsetmessages: + msg8430
2026-04-09 04:25:45rouiljsetpriority: high
assignee: rouilj
status: new -> fixed
messages: + msg8429
resolution: fixed
2026-04-09 03:53:25rouiljsetnosy: + rouilj
messages: + msg8428
2026-04-08 16:55:09zapper63setmessages: + msg8427
2026-04-08 14:21:00zapper63create