Service is just data validation, call other service, call third-party API, read and write the database, in this case, I think the service can also be made configurable, configuration items are roughly
- Required parameter configuration: parameter list, parameter type, parameter length, parameter range, can be null no, prompt message
- The signature and permissions required to invoke the service, or Appkey or pwd
- Add a third-party calling interface that resolves the result by the httpclient call
- Read and write database under the management of Things
- Successful prompts and returned data
So how do you invoke service dynamically?
1. There is a unified URL call entry, servlet sufficient for the POST request, then query the required service list, sequential execution, Gobang principle, any one service exception will return the error prompt
In addition to a filter to do authentication, is it possible to say that only write page and configure service?
Could web development be like this?