3

When i try to add Handler class into my Rest API it works after it was compiled

when i need to edit it Handler class statement is disappeared But it is worked inside

What is the problem?

It is creating handler class and save it successfully After this when i click again edit api, its gone

enter image description here

Community
  • 1
  • 1
iderkhangai
  • 311
  • 1
  • 13
  • Don't you see any errors in the log file? a deployment failure? – Bee Sep 12 '19 at 04:20
  • there is no error it works fine – iderkhangai Sep 12 '19 at 06:18
  • this usually happens when you have a syntax error in the config. when that happens the config is reverted to a working state removing the incorrect part. but there should be an error log. – Bee Sep 12 '19 at 07:16
  • Sometimes this can be a rendering issue. The handler definition is not rendered properly in the source view. Could you check the API config file (EI_HOME/repository/deployment/server/synapse-configs/default/apis)? Can you see the handler definition? – Thishani Lucas Sep 12 '19 at 07:56
  • (EI_HOME/repository/deployment/server/synapse-configs/default/apis) I opened api's xml file in notepad ++, handler class is there, it does not appear only source view(Management Console) – iderkhangai Sep 12 '19 at 09:54
  • Hi. I have same problem. could you solve your problem? – Fateme Shahrabi Jun 15 '21 at 09:26

2 Answers2

0

In EI AFAIR, this wasn't supported in UI rendering view however if its saved it will work properly. Also you might use the Integration Studio to create the API, then there won't be such issues.

Nirothipan
  • 314
  • 1
  • 2
  • 14
0

It is not shown in management console source or design view, but if you view in folders like:

EI-Home/repository/deployment/server/synapse-configs/default/apis/your API

…the handler is present in code.

Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
Dharshini
  • 11
  • 1