Right now I can test the API using the browser or Postman. This is good for now, because we only have 2 endpoints, and it is easy to change the URL in the browser or in Postman.
However, as the API gets larger it would be more convenient to have a list of available endpoints that you can test. This is where swagger comes into the picture. With swagger you will have the list of the endpoints, and you can test them at the same time.
I recommend you to follow this article (note that they are using maven here and not gradle)
Right now I can test the API using the browser or Postman. This is good for now, because we only have 2 endpoints, and it is easy to change the URL in the browser or in Postman.
However, as the API gets larger it would be more convenient to have a list of available endpoints that you can test. This is where swagger comes into the picture. With swagger you will have the list of the endpoints, and you can test them at the same time.
I recommend you to follow this article (note that they are using maven here and not gradle)