Macat MVP
This is the Macat Digital Library MVP.
Version: 1.0.0
BasePath:
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html
Access
[ Jump to Models ]
Table of Contents
Up
get /book/{publicationURL}/bibliography
(bookPublicationURLBibliographyGet)
Path parameters
publicationURL (required)
Path Parameter — default: null
Return type
Example data
Content-Type: application/json
{
"publication" : "The Politics of Immigration in Multi-Level States",
"position" : 0,
"content" : "Hepburn, Eve, and Ricard Zapata-Barrero, eds. The Politics of Immigration in Multi-Level States. London: Palgrave, 2014."
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The book's bibliography is succesfully returned
401
The user is not logged in
Error
404
the book does not exist
Error
Up
get /book/{publicationURL}/glossary
(bookPublicationURLGlossaryGet)
Path parameters
publicationURL (required)
Path Parameter — default: null
Return type
Example data
Content-Type: application/json
{
"textIdentifier" : "Agency",
"position" : 0,
"label" : "Agency:",
"synopsis" : "philosophical term for the capacity to act with free will.",
"type" : "Term"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The books glossary is succesfully returned
401
The user is not logged in
Error
404
the book does not exist
Error
Up
get /book/{publicationURL}/overview
(bookPublicationURLOverviewGet)
Path parameters
publicationURL (required)
Path Parameter — default: null
Return type
Example data
Content-Type: application/json
{
"overview" : "The overview of the book",
"ISBN" : "9781912127764",
"synopsis" : "The synopsis of the book",
"id" : "c602f351-cea6-46d0-8ab6-813e77dc1728",
"title" : "Gender Trouble",
"publicationURL" : "gender-trouble-feminism-and-the-subversion-of-identity--analysis",
"authors" : [ {
"isAlive" : true,
"isTopicAuthor" : true,
"name" : "Judith Butler",
"position" : 0,
"id" : "1edf74e7-bb04-4ed4-b1aa-9e9dd678ed47",
"biography" : "American philosopher and gender theorist Judith Butler was born in Ohio in 1956..."
}, {
"isAlive" : true,
"isTopicAuthor" : true,
"name" : "Judith Butler",
"position" : 0,
"id" : "1edf74e7-bb04-4ed4-b1aa-9e9dd678ed47",
"biography" : "American philosopher and gender theorist Judith Butler was born in Ohio in 1956..."
} ]
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The overview of the book is successfully returned
BookFull
404
the book does not exist
Error
(booksGet)
Query parameters
page (optional)
Query Parameter — default: 0
per_page (optional)
Query Parameter — default: 25
Return type
Example data
Content-Type: application/json
{
"ISBN" : "9781912127764",
"id" : "c602f351-cea6-46d0-8ab6-813e77dc1728",
"title" : "Gender Trouble",
"publicationURL" : "gender-trouble-feminism-and-the-subversion-of-identity--analysis",
"authors" : [ {
"isTopicAuthor" : true,
"name" : "Judith Butler",
"position" : 0,
"id" : "1edf74e7-bb04-4ed4-b1aa-9e9dd678ed47"
}, {
"isTopicAuthor" : true,
"name" : "Judith Butler",
"position" : 0,
"id" : "1edf74e7-bb04-4ed4-b1aa-9e9dd678ed47"
} ]
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
A list of books is successfully returned
Ends the current session if it exists (sessionDelete)
Return type
Example data
Content-Type: application/json
{
"message" : "the parameters provided failed validation",
"status" : 422
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The session is succesfully ended
Message
404
No session exists for the current user
Error
Displays the current session if it exists (sessionGet)
Return type
Example data
Content-Type: application/json
{
"role" : {
"name" : "user"
},
"id" : "aaadcde9-d877-436a-b66b-19acd31d2574",
"email" : "user@example.com"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The user is successfully retrieved, we return their id and role
User
404
No session exists for the current user
Error
Creates a new session for a registered user (sessionPost)
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"role" : {
"name" : "user"
},
"id" : "aaadcde9-d877-436a-b66b-19acd31d2574",
"email" : "user@example.com"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
201
The user is successfully retrieved, we return their id and role
User
401
The user details provided were not valid
Error
(structureGet)
Return type
Example data
Content-Type: application/json
{
"title" : "Ways In To The Text",
"modules" : [ {
"title" : "Module 1: The Author And The Historical Context",
"content" : [ {
"title" : "What does The Sacred Wood say?",
"contentType" : "KeyPoints"
}, {
"title" : "What does The Sacred Wood say?",
"contentType" : "KeyPoints"
} ]
}, {
"title" : "Module 1: The Author And The Historical Context",
"content" : [ {
"title" : "What does The Sacred Wood say?",
"contentType" : "KeyPoints"
}, {
"title" : "What does The Sacred Wood say?",
"contentType" : "KeyPoints"
} ]
} ]
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The page structure for the analysis is succesfully returned
Registers a new user (usersPost)
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"role" : {
"name" : "user"
},
"id" : "aaadcde9-d877-436a-b66b-19acd31d2574",
"email" : "user@example.com"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
201
The user is successfully created, we return their id and role
User
422
The user details provided were not valid
ValidationError
Up
get /book/{publicationURL}/content/{sectionNum}/{moduleNum}/{contentType}
(bookPublicationURLContentSectionNumModuleNumContentTypeGet)
Path parameters
publicationURL (required)
Path Parameter — default: null
sectionNum (required)
Path Parameter — default: null
moduleNum (required)
Path Parameter — default: null
contentType (required)
Path Parameter — default: null
Return type
Example data
Content-Type: application/json
{
"ISBN" : "9781912453085",
"module" : 0,
"section" : 0,
"position" : 0,
"contentType" : "KeyPoints",
"content" : "Michel Foucault (1926-1984) was a French philosopher and historian."
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The content items for this section / module / type are returned
401
The user is not logged in
Error
404
The content item does not exist
Error
Up
get /book/{publicationURL}/content/{sectionNum}/{moduleNum}/Notes
(bookPublicationURLContentSectionNumModuleNumNotesGet)
Path parameters
publicationURL (required)
Path Parameter — default: null
sectionNum (required)
Path Parameter — default: null
moduleNum (required)
Path Parameter — default: null
Return type
Example data
Content-Type: application/json
{
"ISBN" : "9781912453085",
"module" : 0,
"textIdentifier" : "m-en-1",
"section" : 0,
"position" : 0,
"content" : "Michel Foucault (1926-1984) was a French philosopher and historian."
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The content items for this section / module / type are returned
401
The user is not logged in
Error
404
The content item does not exist
Error
[ Jump to Methods ]
Table of Contents
Author
-
AuthorOverview
-
BibliographyItem
-
BookFull
-
BookOverview
-
ContentItem
-
ContentStructure
-
Error
-
GlossaryItem
-
Message
-
ModuleStructure
-
Note
-
Redirect
-
Role
-
SectionStructure
-
User
-
ValidationError
-
ValidationError_allOf
-
ValidationIssue
-
inline_object
-
inline_object_1
-
position
isTopicAuthor
id
name
biography
isAlive
position
isTopicAuthor
id
name
position
publication
content
publicationURL
title
ISBN
synopsis
overview
id
authors
publicationURL
title
ISBN
id
authors
ISBN
section
module
position
contentType
content
position
type
textIdentifier
label
synopsis
A module of the analysis, gives order and content types
ISBN
section
module
position
textIdentifier
content
The general structure of the analysis, gives order and content types
email
password
passwordConfirmation