Marieke's library

Welcome to my library


GET method

/api/books

This endpoints provides all the books in the database.


/api/wishlist

This endpoint provides all the books in my wishlist.


/api/book/yourid

This endpoint provides all the information for one book to which you provided the id.


/api/title/yourtitle

This endpoint provides all the information for one book to which you provided the title.


/api/firstname/author's firstname

This endpoint provides all the information for the books written by the author to which you provided the first name.

When using this endpoint its not necessary to provide the complete first name you are able to search on even one letter to get all the books written by writers with that letter in their first name.


/api/lastname/author's lastname

This endpoint provides all the information for the books written by the author to which you provided the last name.

When using this endpoint its not necessary to provide the complete last name you are able to search on even one letter to get all the books written by writers with that letter in their last name.


POST method

/api/book

This method allows you to add a new book to the library.

Title, Author first name and author last name are required.

The publishing year is only allowed to have a numeric value with less then 5 numbers.

The number of pages is only allowed to have a numeric value

The status is only allowed to be numeric and under 3 as the number represents a value in the database 0=unread or 1=read or 2=currently reading.

Use the following format to add data

shows used format

PUT method

/api/book

This method allows you to edit a book in the library with the id you provided.

Title, Author first name and author last name are required.

The publishing year is only allowed to have a numeric value with less then 5 numbers.

The number of pages is only allowed to have a numeric value

The status is only allowed to be numeric and under 3 as the number represents a value in the database 0=unread or 1=read or 2=currently reading.

Use the following format to edit data

shows used format

Delete method

/api/book/yourid

This method allows you to delete a book in the library with the id you provided.