Microsoft Cognitive Services API with Spring Boot
Consume Microsoft Cognitive Services API from Spring Boot application
FaceAPIDemo/mvn clean install
java -jar target/FaceAPIDemo-0.0.1-SNAPSHOT.jar —subscription.key=\ —sample.url=\ —face.attributes=\
subscription.key
, sample.url
and face.attributes
are populatedcf cups cognitive -p ‘{“key”:”—- API key goes here —-“}’
cognitive
as the service name for the binding to work:cf bind-service face-api cognitive
cf restage face-api
[1] https://docs.microsoft.com/en-us/azure/cognitive-services/face/overview