Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Inserts a new annotation.
See: Books API Reference for books.mylibrary.annotations.insert
.
Synopsis
- type MyLibraryAnnotationsInsertResource = "books" :> ("v1" :> ("mylibrary" :> ("annotations" :> (QueryParam "country" Text :> (QueryParam "showOnlySummaryInResponse" Bool :> (QueryParam "annotationId" Text :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Annotation :> Post '[JSON] Annotation)))))))))
- myLibraryAnnotationsInsert :: Annotation -> MyLibraryAnnotationsInsert
- data MyLibraryAnnotationsInsert
- mlaiCountry :: Lens' MyLibraryAnnotationsInsert (Maybe Text)
- mlaiPayload :: Lens' MyLibraryAnnotationsInsert Annotation
- mlaiShowOnlySummaryInResponse :: Lens' MyLibraryAnnotationsInsert (Maybe Bool)
- mlaiAnnotationId :: Lens' MyLibraryAnnotationsInsert (Maybe Text)
- mlaiSource :: Lens' MyLibraryAnnotationsInsert (Maybe Text)
REST Resource
type MyLibraryAnnotationsInsertResource = "books" :> ("v1" :> ("mylibrary" :> ("annotations" :> (QueryParam "country" Text :> (QueryParam "showOnlySummaryInResponse" Bool :> (QueryParam "annotationId" Text :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Annotation :> Post '[JSON] Annotation))))))))) Source #
A resource alias for books.mylibrary.annotations.insert
method which the
MyLibraryAnnotationsInsert
request conforms to.
Creating a Request
myLibraryAnnotationsInsert Source #
Creates a value of MyLibraryAnnotationsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MyLibraryAnnotationsInsert Source #
Inserts a new annotation.
See: myLibraryAnnotationsInsert
smart constructor.
Instances
Request Lenses
mlaiCountry :: Lens' MyLibraryAnnotationsInsert (Maybe Text) Source #
ISO-3166-1 code to override the IP-based location.
mlaiPayload :: Lens' MyLibraryAnnotationsInsert Annotation Source #
Multipart request metadata.
mlaiShowOnlySummaryInResponse :: Lens' MyLibraryAnnotationsInsert (Maybe Bool) Source #
Requests that only the summary of the specified layer be provided in the response.
mlaiAnnotationId :: Lens' MyLibraryAnnotationsInsert (Maybe Text) Source #
The ID for the annotation to insert.
mlaiSource :: Lens' MyLibraryAnnotationsInsert (Maybe Text) Source #
String to identify the originator of this request.