Trying to consume an API using rest template

Viewed 25

I am using java springboot and gradle, trying to write logic to consume an API using rest template. My API is at the address myapi.api.com (for example). It has details on users in the database, and looks something like this:

{
   "created": "2020-09-22",
   "isActive": "2019-10-30",
   "firstName": "Alex",
   "lastName": "Jones"
}

If I also have a client id and api key for this api, what would be the easiest way to consume this API?

0 Answers
Related