Skip to content

Dynamically add text attributes #9

@StephenCathcart

Description

@StephenCathcart

Description 🤔

"As a user, I want to be able to select which text attributes interest me, so that the request is more focused and reduces number of operations per request."

private RequestedAttributes createRequestedAttributes(ApiKey apiKey) {
var attributes = new RequestedAttributes();
// TODO dynamically add new attributes to only user enabled attributes from
// api key
attributes.setProfanity(new Attribute());
attributes.setToxicity(new Attribute());
return attributes;

  • Requested attributes are added only if a user has enabled them

Acceptance Criteria 🎉

  • Ensure that all code conforms to our coding standards
  • Written new unit / integration tests (or updated existing ones) for changes if necessary
  • Verified that all unit / integration tests are passing
  • Written doc blocks, inline documentation and updated READMEs on all new changes if necessary
  • Both Travis CI and SonarCloud are passing

Please read CONTRIBUTING.md for details on our code of conduct.

Metadata

Metadata

Labels

p:mediumThis issue may be useful, and needs some attentions:textRelates to the text endpointt:featureNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions