The project has 2 services and 2 front-end applications.
The data project has an API for interacting with a front-end application. To create a form and get answers. As well as an API for interacting with another service by json-rpc.
- POST host/api/form/ - Create a form
- GET host/api/form/answers/ - Getting answers
POST host/api/v1 - Route
- method get_form - Getting form
- method send_answer - Submit responses to a form
- get_form_fields - Get form responses
Site interacts with Data using json-rpc. To send json-rpc, the Worker class was developed, which sends HTTP requests using the HTTPX asynchronous library.
- GET host/api/form/ - Getting a form by its id
- POST host/api/form/answer/ - Sending responses to the form
- GET host/api/form/answer/ - Getting answers to the form