Interface Snippet

All Known Implementing Classes:
AbstractBodySnippet, AbstractCookiesSnippet, AbstractFieldsSnippet, AbstractHeadersSnippet, AbstractParametersSnippet, CurlRequestSnippet, FormParametersSnippet, HttpieRequestSnippet, HttpRequestSnippet, HttpResponseSnippet, LinksSnippet, PathParametersSnippet, QueryParametersSnippet, RequestBodySnippet, RequestCookiesSnippet, RequestFieldsSnippet, RequestHeadersSnippet, RequestPartBodySnippet, RequestPartFieldsSnippet, RequestPartsSnippet, ResponseBodySnippet, ResponseCookiesSnippet, ResponseFieldsSnippet, ResponseHeadersSnippet, TemplatedSnippet

public interface Snippet
A Snippet is used to document aspects of a call to a RESTful API.
Author:
Andy Wilkinson
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    document(Operation operation)
    Documents the call to the RESTful API described by the given operation.
  • Method Details

    • document

      void document(Operation operation) throws IOException
      Documents the call to the RESTful API described by the given operation.
      Parameters:
      operation - the API operation
      Throws:
      IOException - if a failure occurs will documenting the operation