Skip to content

feat(openapi): described methods for getting and updating a form item

Martin Kuba requested to merge makub/update_form_items into main


Two operations getFormItemById and updateFormItemTexts that existed in the RPC API, but were not described in the OpenAPI document, were added to the OpenAPI document.

The return type of the java method getFormItemById() in RegistrarManagerMethod class was corrected in the documentation from void to ApplicationFormItem.

A new command updateApplicationFormItem using these two operations was added to Python CLI implementation.

How to test

In the folder perun/perun-cli-python run the following commands:

./ updateApplicationFormItem --form_item_id 22418 -en 'Masaryk University' -cs 'Masarykova Univerzita' -en 'Charles University' -cs 'Univerzita Karlova'

Author's checklist

  • I have followed the contribution guidelines
  • This MR has been tested or does not change functionality
  • I have added relevant merge request dependencies (if this MR has any)
  • I have added the correct labels
  • I have assigned reviewers (if any are relevant)
  • I have edited the documentation (if the changes require it) or I have noted the need for the change if I do not have access to the documentation
  • I have marked all introduced BREAKING CHANGES or necessary DEPLOYMENT NOTES in the commit message(s)

Reviewer's checklist

  • This MR has been tested or does not change functionality
  • This MR has correct commit message format

Merge request reports