GET sml/texts/authors/{id}
Request Information
Authorize
AnonymousURI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
SmlAuthorModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Forename | string |
Required String length: inclusive between 0 and 50 |
|
| Midname | string |
String length: inclusive between 0 and 50 |
|
| Surname | string |
Required String length: inclusive between 0 and 50 |
|
| Alias | string |
String length: inclusive between 0 and 50 |
|
| BirthYear | integer |
None. |
|
| DeathYear | integer |
None. |
|
| Gender | Gender |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"forename": "sample string 2",
"midname": "sample string 3",
"surname": "sample string 4",
"alias": "sample string 5",
"birthYear": 1,
"deathYear": 1,
"gender": "Unknown"
}
application/xml, text/xml
Sample:
<SmlAuthorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Corpora.Web.API.Models.Sml"> <Alias>sample string 5</Alias> <BirthYear>1</BirthYear> <DeathYear>1</DeathYear> <Forename>sample string 2</Forename> <Gender>Unknown</Gender> <ID>1</ID> <Midname>sample string 3</Midname> <Surname>sample string 4</Surname> </SmlAuthorModel>