Jan
02/02/2022, 5:46 PMVampire
02/02/2022, 6:32 PMJan
02/02/2022, 6:34 PMVampire
02/02/2022, 7:01 PMnew URL("...").openConnection()
might suffice.
Or if for that API a Java wrapper exists, just use it.
Or if the API provides an OpenAPI specification you can also use a generator to generate code like https://github.com/OpenAPITools/openapi-generator/