{"resourcePath":"/document","models":{"DocumentMetadata":{"properties":{"tags":{"type":"array","items":{"type":"string"}},"yearType":{"type":"yearType"},"expirationDate":{"type":"Date"},"extendedMetadata":{"type":"extendedMetadata"},"stats":{"type":"basicDocumentStats"},"provider":{"type":"contentProvider"},"contentType":{"type":"contentType"},"sourceUrl":{"type":"string"},"date":{"type":"Date"},"medium":{"type":"documentMedium"},"guid":{"type":"string"},"id":{"type":"long"},"authors":{"type":"array","items":{"$ref":"author"}},"title":{"type":"string"},"primaryAuthorType":{"type":"authorType"},"createdAt":{"type":"Date"},"classification":{"type":"subjectClassificationType"},"year":{"type":"integer"},"primaryAuthor":{"type":"string"},"rating":{"type":"double"},"primaryAuthorId":{"type":"long"}},"id":"documentMetadata"},"DocumentModel":{"properties":{"bigramFrequencies":{"type":"array","items":{"$ref":"biGramFrequency"}},"sentences":{"type":"array","items":{"$ref":"sentence"}},"wordFrequencies":{"type":"array","items":{"$ref":"wordFrequency"}},"documentMetadata":{"type":"documentMetadata"},"basicDocumentStats":{"type":"basicDocumentStats"}},"id":"documentModel"},"ExtendedMetadata":{"properties":{"sourceFileSize":{"type":"long"},"issn":{"type":"string"},"isbn":{"type":"string"},"lccn":{"type":"string"},"documentMetadataId":{"type":"long"}},"id":"extendedMetadata"},"Author":{"properties":{"id":{"type":"long"},"authorType":{"type":"authorType"},"createdAt":{"type":"Date"},"description":{"type":"string"},"name":{"type":"string"},"uniqueName":{"type":"string"}},"id":"author"},"ScoredWord":{"properties":{"position":{"type":"int"},"id":{"type":"long"},"docTermCount":{"type":"int"},"lemma":{"type":"string"},"wordType":{"type":"string"},"score":{"type":"float"},"sentenceId":{"type":"long"},"word":{"type":"string"},"stopword":{"type":"boolean"},"baseWordScore":{"type":"double"},"partOfSpeech":{"type":"string"}},"id":"scoredWord"},"DocumentMedium":{"properties":{"id":{"type":"int"},"name":{"type":"string"}},"id":"documentMedium"},"YearType":{"properties":{"id":{"type":"int"},"name":{"type":"string"}},"id":"yearType"},"BiGramFrequency":{"properties":{"count":{"type":"long"},"bigram":{"type":"bigram"},"wlmi":{"type":"double"},"mi":{"type":"double"}},"id":"biGramFrequency"},"WordFrequency":{"properties":{"count":{"type":"long"},"wordstring":{"type":"string"}},"id":"wordFrequency"},"Sentence":{"properties":{"id":{"type":"long"},"scoredWords":{"type":"array","items":{"$ref":"scoredWord"}},"display":{"type":"string"},"rating":{"type":"int"},"documentMetadataId":{"type":"long"}},"id":"sentence"},"SubjectClassificationType":{"properties":{"id":{"type":"int"},"name":{"type":"string"}},"id":"subjectClassificationType"},"ContentProvider":{"properties":{"id":{"type":"int"},"name":{"type":"string"}},"id":"contentProvider"},"Bigram":{"properties":{"count":{"type":"long"},"gram2":{"type":"string"},"gram1":{"type":"string"},"wlmi":{"type":"double"},"mi":{"type":"double"}},"id":"bigram"},"AuthorType":{"properties":{"id":{"type":"int"},"name":{"type":"string"}},"id":"authorType"},"BasicDocumentStats":{"properties":{"uniqueBiGramsCount":{"type":"long"},"wordsCount":{"type":"long"},"documentsCount":{"type":"long"},"firstUsedWordsCount":{"type":"long"},"tokensCount":{"type":"long"},"sentencesCount":{"type":"long"},"viableSentencesCount":{"type":"long"},"type":{"type":"string"},"uniqueWordsCount":{"type":"long"},"key":{"type":"string"}},"id":"basicDocumentStats"},"ContentType":{"properties":{"id":{"type":"int"},"name":{"type":"string"}},"id":"contentType"}},"apis":[{"path":"/document.{format}/id/{document_id}/words","description":"","operations":[{"parameters":[{"name":"document_id","description":"Document ID to fetch frequency data for","required":true,"dataType":"string","allowMultiple":false,"paramType":"path"},{"name":"skip","description":"Results to skip","required":false,"dataType":"string","allowMultiple":false,"paramType":"query"},{"name":"limit","description":"Maximum number of results to return","required":false,"dataType":"string","allowMultiple":false,"paramType":"query"}],"summary":"Fetches Document objects by Content Provider code.","responseTypeInternal":"com.wordnik.corpus.stats.entity.WordFrequency","errorResponses":[{"reason":"Invalid Content Provider code supplied.","code":400},{"reason":"No activation code available.","code":404}],"nickname":"getWordFrequencies","responseClass":"List[wordFrequency]","httpMethod":"GET"}]},{"path":"/document.{format}/{contentProvider}/documents","description":"","operations":[{"parameters":[{"name":"contentProvider","description":"Partner Code to fetch for.","required":true,"dataType":"string","allowMultiple":false,"paramType":"path"},{"name":"filterByWordScore","description":"Filter document model by word scores.","required":false,"dataType":"string","allowMultiple":false,"paramType":"query"},{"name":"minWordScore","description":"Minimum word score to return.","required":false,"dataType":"string","allowMultiple":false,"paramType":"query"},{"name":"skip","description":"Results to skip","required":false,"dataType":"string","allowMultiple":false,"paramType":"query"},{"name":"limit","description":"Maximum number of results to return","required":false,"dataType":"string","allowMultiple":false,"paramType":"query"}],"summary":"Fetches examples for a specific provider matching a criteria.","responseTypeInternal":"com.wordnik.corpus.document.entity.DocumentModel","errorResponses":[{"reason":"Invalid Content Provider code supplied.","code":404}],"nickname":"getGlossaries","responseClass":"List[documentModel]","httpMethod":"GET"}]},{"path":"/document.{format}/provider/{provider}","description":"","operations":[{"parameters":[{"name":"provider","description":"Content provider","required":true,"dataType":"string","allowMultiple":false,"paramType":"path"},{"name":"skip","description":"Results to skip","required":false,"dataType":"string","allowMultiple":false,"paramType":"query"},{"name":"limit","description":"Maximum number of results to return","required":false,"dataType":"string","allowMultiple":false,"paramType":"query"}],"summary":"Fetches Document objects by Content Provider code.","responseTypeInternal":"com.wordnik.corpus.document.entity.DocumentMetadata","errorResponses":[{"reason":"Invalid Content Provider code supplied.","code":400},{"reason":"No activation code available.","code":404}],"nickname":"getDocumentsByContentProvider","responseClass":"List[documentMetadata]","httpMethod":"GET"}]},{"path":"/document.{format}/{id}/metadata","description":"","operations":[{"parameters":[{"name":"id","description":"Document ID","required":true,"dataType":"string","allowMultiple":false,"paramType":"path"}],"summary":"Fetches Document objects by document identifier.","responseTypeInternal":"com.wordnik.corpus.document.entity.DocumentMetadata","errorResponses":[{"reason":"Invalid document ID supplied.","code":400},{"reason":"No activation code available.","code":404}],"nickname":"getMetadataById","responseClass":"documentMetadata","httpMethod":"GET"}]},{"path":"/document.{format}/{id}/model","description":"","operations":[{"parameters":[{"name":"scores","description":"Return word scores","required":false,"dataType":"string","allowMultiple":false,"paramType":"query"},{"name":"id","description":"Document ID","required":true,"dataType":"string","allowMultiple":false,"paramType":"path"}],"summary":"Fetches Document objects by id.","responseTypeInternal":"com.wordnik.corpus.document.entity.DocumentModel","errorResponses":[{"reason":"Invalid Content Provider code supplied.","code":400},{"reason":"No activation code available.","code":404}],"nickname":"getModelById","responseClass":"documentModel","httpMethod":"GET"}]}],"basePath":"http://api.wordnik.com/v4","swaggerVersion":"1.1-SNAPSHOT.121130","apiVersion":"4.0"}