Time is an important resource that every business treasures and attempts to change in a gain. When choosing document management application, focus on a clutterless and user-friendly interface that empowers users. DocHub provides cutting-edge features to improve your document administration and transforms your PDF editing into a matter of one click. Insert Field Validation from the Money Transfer Agreement with DocHub in order to save a ton of time and boost your efficiency.
Make PDF editing an simple and easy intuitive operation that helps save you a lot of precious time. Easily adjust your files and give them for signing without the need of switching to third-party software. Concentrate on pertinent duties and increase your document administration with DocHub today.
Hi guys, welcome back! In the previous lectures, we have implemented and tested the HTTP APIs to mange bank accounts for our simple bank project. Today, we will do some more practice by implementing the most important API of our application: transfer money API. And while doing so, I will show you how to write a custom validator to validate the input parameters of this API. OK, lets open the terminal and go to the simple bank project folder. Then open it with visual studio code. First I will create a new transfer.go file inside the api package. The implementation of the transfer money API will be very similar to that of the create account API. So Im gonna copy this block of codes from the account.go file and paste it to the transfer.go file. The struct to store input parameters of this API should be transferRequest. It will have several fields. The from account ID of type int64 is the ID of the account where money is going out. This field is required, and its minimum value should be 1