Examples of notes()


Examples of com.wordnik.swagger.annotations.ApiOperation.notes()

                    api.put("path", methodPath);

                    Map<String, Object> operation = Maps.newHashMap();
                    operation.put("method", determineHttpMethod(method));
                    operation.put("summary", apiOperation.value());
                    operation.put("notes", apiOperation.notes());
                    operation.put("nickname", method.getName());
                    if (produces != null) {
                        operation.put("produces", produces.value());
                    }
                    // skip Response.class because we can't reliably infer any schema information from its payload anyway.
View Full Code Here

Examples of com.wordnik.swagger.annotations.ApiOperation.notes()

  public void execute(RequestMappingContext context) {

    HandlerMethod handlerMethod = context.getHandlerMethod();
    String notes = handlerMethod.getMethod().getName();
    ApiOperation methodAnnotation = handlerMethod.getMethodAnnotation(ApiOperation.class);
    if ((null != methodAnnotation) && !StringUtils.isBlank(methodAnnotation.notes())) {
      notes = methodAnnotation.notes();
    }
    context.put("notes", notes);
  }
}
View Full Code Here

Examples of com.wordnik.swagger.annotations.ApiOperation.notes()

    HandlerMethod handlerMethod = context.getHandlerMethod();
    String notes = handlerMethod.getMethod().getName();
    ApiOperation methodAnnotation = handlerMethod.getMethodAnnotation(ApiOperation.class);
    if ((null != methodAnnotation) && !StringUtils.isBlank(methodAnnotation.notes())) {
      notes = methodAnnotation.notes();
    }
    context.put("notes", notes);
  }
}
View Full Code Here

Examples of com.wordnik.swagger.model.Operation.notes()

    Operation operation = super.parseOperation(method, apiOperation, apiResponses, isDeprecated,
            parentParams, parentMethods);
    return new Operation(operation.method(),
        // for a testing purposes
        "summary by the test swagger test filter",
        operation.notes(),
        operation.responseClass(),
        operation.nickname(),
        operation.position(),
        operation.produces(),
        operation.consumes(),
View Full Code Here

Examples of org.sonatype.nexus.capability.CapabilityContext.notes()

    final GenerateMetadataCapability yumRepositoryCapability = mock(GenerateMetadataCapability.class);
    final CapabilityContext capabilityContext = mock(CapabilityContext.class);
    when(reference.context()).thenReturn(capabilityContext);
    when(capabilityContext.id()).thenReturn(CapabilityIdentity.capabilityIdentity("ID"));
    when(capabilityContext.isEnabled()).thenReturn(true);
    when(capabilityContext.notes()).thenReturn("Notes");
    when(reference.capabilityAs(GenerateMetadataCapability.class)).thenReturn(yumRepositoryCapability);
    Map<String, String> aliases = Maps.newHashMap();
    aliases.put("foo", "bar");
    when(yumRepositoryCapability.getConfig()).thenReturn(
        new GenerateMetadataCapabilityConfiguration(RELEASES, aliases, true, 1, "/comps.xml")
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityA.notes()

        .withNotes("Some notes")
        .withPropertyA1("foo")
        .save();

    assertThat(created.id(), is(notNullValue()));
    assertThat(created.notes(), is("Some notes"));
    assertThat(created.property("a1"), is("foo"));
    assertThat(created.propertyA1(), is("foo"));

    // read
    final CapabilityA read = capabilities().get(CapabilityA.class, created.id());
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityA.notes()

    // read
    final CapabilityA read = capabilities().get(CapabilityA.class, created.id());

    assertThat(read.id(), is(created.id()));
    assertThat(read.notes(), is(created.notes()));
    assertThat(read.type(), is(created.type()));
    assertThat(read.properties(), is(created.properties()));
    assertThat(read.propertyA1(), is(created.propertyA1()));

    // update
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityA.notes()

    // update
    read.withNotes("Some other notes").save();

    final CapabilityA updated = capabilities().get(CapabilityA.class, created.id());

    assertThat(updated.notes(), is("Some other notes"));
    assertThat(created.refresh().notes(), is("Some other notes"));

    // delete
    read.remove();
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityB.notes()

        .withNotes("Some notes")
        .withPropertyB1("foo")
        .save();

    assertThat(created.id(), is(notNullValue()));
    assertThat(created.notes(), is("Some notes"));
    assertThat(created.property("b1"), is("foo"));
    assertThat(created.propertyB1(), is("foo"));

    // read
    final CapabilityB read = capabilities().get(CapabilityB.class, created.id());
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityB.notes()

    // read
    final CapabilityB read = capabilities().get(CapabilityB.class, created.id());

    assertThat(read.id(), is(created.id()));
    assertThat(read.notes(), is(created.notes()));
    assertThat(read.type(), is(created.type()));
    assertThat(read.properties(), is(created.properties()));
    assertThat(read.propertyB1(), is(created.propertyB1()));

    // update
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.