Introduction

All in One API can be used for diferent kind of projects where you need some credible data to showcase your prototype/product without needing to run any server-side code. It can also be an useful tool for teaching, learning and testing.

More about this API:

Languages

One of the main objectives of this API is to be able to recover data in diferent languages. If you are interested in adding translations for a language that's not currently supported, please hit me up and we can make it posible.

If you want to GET a response with a particular language don't forget to add the param "lang" to the endpoint. If "lang" param is invalid or unespecified the response will be in English by default.

Currently supported languages are:

Movies


GET all movies

Access the list of 16 movies using the /movies endpoint.

If you want the list in any particular language don't forget to use de "lang" param.

Request:

[GET] https://allinoneapi.vercel.app/movies

Response:

[
  {
    "id": "57a0082f-369a-4a48-b7e7-8379656abcdc",
    "title": "The Godfather",
    "description": "Don Vito Corleone, head of a mafia fam...",
    "year": 1972,
    "director": "Francis Ford Coppola",
    "duration": 175,
    "img": "https://m.media-amazon.com/images/M/MV5B...",
    "genre": ["Crime", "Drama"],
    "rate": 9.2
  },
  // ...
]

Language

The param "lang" will allow you to get the list of all the movies but translated into any language available. To check available languages see Languages section.

Request:

[GET] https://allinoneapi.vercel.app/movies?lang=pt

Response:

[
  {
    "id": "57a0082f-369a-4a48-b7e7-8379656abcdc",
    "title": "O Poderoso Chefão",
    "description": "O patriarca idoso de uma dinastia do crime...",
    "year": 1972,
    "director": "Francis Ford Coppola",
    "duration": 175,
    "img": "https://m.media-amazon.com/images/M/MV5BZjgw...",
    "genre": ["Policial", "Drama"],
    "rate": 9.2
  },
  // ...
]

Movies


GET filtered movies

Use different params to get a list of movies from /movies endpoint.

All params and values must be written in English even if you are going to request a translation with "lang".

Language

The param "lang" will allow you to get the list of all the movies but translated into any language available. To check available languages see Languages section.

Request:

[GET] https://allinoneapi.vercel.app/movies?lang=pt

Genre

To filter by genre you need to use the param "genre". You can only filter by multiple genres adding multiple "genre" params.

By default if you filter with multiple genres it will respond with any movie that has any of the genres. If you want it just to retrieve the movies that have all the genres you should add the "allgenres" param with value "true".

This param can be combined with any other param.

The categories available to use as a value are:

Example Request:

[GET] https://allinoneapi.vercel.app/movies?genre=Sci-Fi&genre=Adventure&allgenres=true

Year

To filter by year you need to use the param "year". You can only filter by 1 year per request, and it can be combined with any other param.

Example Request:

[GET] https://allinoneapi.vercel.app/movies?year=1980

Movies


GET movie with ID

Access to an specific movie using the id with the /movies/:id endpoint.

Example Request:

[GET] https://allinoneapi.vercel.app/movies/a2614984-175b-4a22-9fe1-ec7795280109

Response:

{
  "id": "a2614984-175b-4a22-9fe1-ec7795280109",
  "title": "Star Wars: Episode V - The Empire Strikes Back",
  "description": "After the Rebels are overpowered by the Empire, Luke Skywaler be...",
  "year": 1980,
  "director": "Irvin Kershner",
  "duration": 124,
  "img": "https://m.media-amazon.com/images/M/MV5BYmU1NDRjNDgtMzhiMi00Nj...",
  "genre": ["Action", "Adventure", "Fantasy"],
  "rate": 8.7
}

Language

The only param available when getting with an id is "lang" which allows you to choose between any supported translation. To check available languages see Languages section.

Example Request:

[GET] https://allinoneapi.vercel.app/movies/a2614984-175b-4a22-9fe1-ec7795280109?lang=es

Response:

{
  "id": "a2614984-175b-4a22-9fe1-ec7795280109",
  "title": "El imperio contraataca",
  "description": "Los rebeldes han vencido al Imperio en el planeta helado Hoth. Luke Skywal...",
  "year": 1980,
  "director": "Irvin Kershner",
  "duration": 124,
  "img": "https://m.media-amazon.com/images/M/MV5BY2I2NGEyZWEtYzEzOC00NTJiLTg1N...",
  "genre": ["Acción", "Aventura", "Fantasía"],
  "rate": 8.7
}

Movies


POST movie

Create a movie using the /movies endpoint.

Remember that nothing in real will be inserted into the database, it will just return you the new object. If you then try to access the objet with the id you will not be able to retreave it.

Example Request:

[POST] https://allinoneapi.vercel.app/movies
# Body
{
  "title": "Movie title",
  "description": "Movie description...",
  "year": 9999,
  "director": "Movie director",
  "duration": 111,
  "img": "https//examplepage.com/linkOfMoviePoster.jpg",
  "genre": ["example", "genres"],
  "rate": 2.3
}

Response:

{
  "id": "UUID-autogenerated",
  "title": "Movie title",
  "description": "Movie description...",
  "year": 9999,
  "director": "Movie director",
  "duration": 111,
  "img": "https//examplepage.com/linkOfMoviePoster.jpg",
  "genre": ["example", "genres"],
  "rate": 2.3
}

Movies


PUT movie

Modify a movie using the /movies/:id endpoint. It needs you to send all the values in the body, except the id.

Remember that nothing in real will be inserted into the database, it will just return you the modified object. If you then try to access the objet with the id you will get the original object.

Example Request:

[PUT] https://allinoneapi.vercel.app/movies/a2614984-175b-4a22-9fe1-ec7795280109
# Body
{
  "title": "Modified title",
  "description": "Modified description...",
  "year": 1234,
  "director": "Modified director",
  "duration": 123,
  "img": "https//examplepage.com/modifiedLinkOfMoviePoster.jpg",
  "genre": ["modified", "genres"],
  "rate": 9.3
}

Response:

{
  "id": "a2614984-175b-4a22-9fe1-ec7795280109",
  "title": "Modified title",
  "description": "Modified description...",
  "year": 1234,
  "director": "Modified director",
  "duration": 123,
  "img": "https//examplepage.com/modifiedLinkOfMoviePoster.jpg",
  "genre": ["modified", "genres"],
  "rate": 9.3
}

Movies


PATCH movie

Modify a movie using the /movies/:id endpoint. You need to modify only 1 value in the body, but you can modify all the values you want.

Remember that nothing in real will be inserted into the database, it will just return you the modified object. If you then try to access the objet with the id you will get the original object.

Example Request:

[PATCH] https://allinoneapi.vercel.app/movies/a2614984-175b-4a22-9fe1-ec7795280109
# Body
{
  "description": "Modified description...",
  "year": 1234,
  "img": "https//examplepage.com/modifiedLinkOfMoviePoster.jpg",
}

Response:

{
  "id": "a2614984-175b-4a22-9fe1-ec7795280109",
  "title": "Star Wars: Episode V - The Empire Strikes Back",
  "description": "Modified description...",
  "year": 1234,
  "director": "Irvin Kershner",
  "duration": 124,
  "img": "https//examplepage.com/modifiedLinkOfMoviePoster.jpg",
  "genre": ["Action", "Adventure", "Fantasy"],
  "rate": 8.7
}

Movies


DELETE movie

Delete a movie using the /movies/:id endpoint.

Remember that nothing in real will be deleted from the database, it will just return you a message as if it had been deleted. If you then try to access the objet with the id you will get the original object.

Example Request:

[DELETE] https://allinoneapi.vercel.app/movies/a2614984-175b-4a22-9fe1-ec7795280109

Response:

{
  "message": "Movie deleted succesfully."
}

Series


GET all series

Access the list of 12 series using the /series endpoint.

If you want the list in any particular language don't forget to use de "lang" param.

Request:

[GET] https://allinoneapi.vercel.app/series

Response:

[
  {
    "id": "88f18feb-53f7-4cc0-9da4-2bd8505baf4e",
    "title": "Breaking Bad",
    "description": "A chemistry teacher diagnosed with inoperable lung...",
    "started": 2008,
    "ended": 2013,
    "seasons": 5,
    "episodes": 62,
    "img": "https://m.media-amazon.com/images/M/MV5BYmQ4YWMxYj...",
    "genre": ["Crime", "Drama", "Thriller"],
    "rate": 9.5
  },
  // ...
]

Language

The param "lang" will allow you to get the list of all the series but translated into any language available. To check available languages see Languages section.

Request:

[GET] https://allinoneapi.vercel.app/series?lang=es

Response:

[
  {
    "id": "88f18feb-53f7-4cc0-9da4-2bd8505baf4e",
    "title": "Breaking Bad",
    "description": "Un profesor de secundaria que ha sido diagnosticado...",
    "started": 2008,
    "ended": 2013,
    "seasons": 5,
    "episodes": 62,
    "img": "https://m.media-amazon.com/images/M/MV5BYmQ4YWMxYjUtNjZm...",
    "genre": ["Crimen", "Drama", "Suspenso"],
    "rate": 9.5
  },
  // ...
]

Series


GET filtered series

Use different params to get a list of series from /series endpoint.

All params and values must be written in English even if you are going to request a translation with "lang".

Language

The param "lang" will allow you to get the list of all the series but translated into any language available. To check available languages see Languages section.

Request:

[GET] https://allinoneapi.vercel.app/series?lang=es

Genre

To filter by genre you need to use the param "genre". You can only filter by multiple genres adding multiple "genre" params.

By default if you filter with multiple genres it will respond with any serie that has any of the genres. If you want it just to retrieve the series that have all the genres you should add the "allgenres" param with value "true".

This param can be combined with any other param.

The categories available to use as a value are:

Example Request:

[GET] https://allinoneapi.vercel.app/series?genre=Animation

Year

To filter by year you need to use the param "year". If the value is anyone between the "started" or the "ended" year of the object, it will be returned. You can only filter by 1 year per request, and it can be combined with any other param.

Example Request:

[GET] https://allinoneapi.vercel.app/series?year=2010

Series


GET serie with ID

Access to an specific serie using the id with the /series/:id endpoint.

Example Request:

[GET] https://allinoneapi.vercel.app/series/c86373e1-7265-4d41-9ce8-8870c9e6d73a

Response:

{
  "id": "c86373e1-7265-4d41-9ce8-8870c9e6d73a",
  "title": "Avatar: The Last Airbender",
  "description": "description":"In a war-torn world of elemental magic, a young boy rea...",
  "started": 2005,
  "ended": 2008,
  "seasons": 3,
  "episodes": 62,
  "img": "https://m.media-amazon.com/images/M/MV5BODc5YTBhMTItMjhkNi00ZTIx...",
  "genre": ["Animation", "Action", "Adventure"],
  "rate": 9.3
}

Language

The only param available when getting with an id is "lang" which allows you to choose between any supported translation. To check available languages see Languages section.

Example Request:

[GET] https://allinoneapi.vercel.app/series/c86373e1-7265-4d41-9ce8-8870c9e6d73a?lang=es

Response:

{
  "id": "c86373e1-7265-4d41-9ce8-8870c9e6d73a",
  "title": "Avatar. La leyenda de Aang",
  "description": "En un mundo de magia desgarrado por la guerra, un niño vuelve a despertar p...",
  "started": 2005,
  "ended": 2008,
  "seasons": 3,
  "episodes": 62,
  "img": "https://m.media-amazon.com/images/M/MV5BYmI1OGI2MzYtMTViMS00MWU5LThiZ...",
  "genre": ["Animación", "Acción", "Aventura"],
  "rate": 9.3
}

Series


POST serie

Create a serie using the /series endpoint.

Remember that nothing in real will be inserted into the database, it will just return you the new object. If you then try to access the objet with the id you will not be able to retreave it.

Example Request:

[POST] https://allinoneapi.vercel.app/series
# Body
{
  "title": "Serie title",
  "description": "Serie description...",
  "started": 1111,
  "ended": 2222,
  "seasons": 5,
  "episodes": 55,
  "img": "https//examplepage.com/linkOfSeriePoster.jpg",
  "genre": ["example", "genres"],
  "rate": 2.3
}

Response:

{
  "id": "UUID-autogenerated",
  "title": "Serie title",
  "description": "Serie description...",
  "started": 1111,
  "ended": 2222,
  "seasons": 5,
  "episodes": 55,
  "img": "https//examplepage.com/linkOfSeriePoster.jpg",
  "genre": ["example", "genres"],
  "rate": 2.3
}

Series


PUT serie

Modify a serie using the /series/:id endpoint. It needs you to send all the values in the body, except the id.

Remember that nothing in real will be inserted into the database, it will just return you the modified object. If you then try to access the objet with the id you will get the original object.

Example Request:

[PUT] https://allinoneapi.vercel.app/series/c86373e1-7265-4d41-9ce8-8870c9e6d73a
# Body
{
  "title": "Modified title",
  "description": "Modified description...",
  "started": 1111,
  "ended": 2222,
  "seasons": 5,
  "episodes": 55,
  "img": "https//examplepage.com/modifiedLinkOfSeriePoster.jpg",
  "genre": ["modified", "genres"],
  "rate": 9.3
}

Response:

{
  "id": "c86373e1-7265-4d41-9ce8-8870c9e6d73a",
  "title": "Modified title",
  "description": "Modified description...",
  "started": 1111,
  "ended": 2222,
  "seasons": 5,
  "episodes": 55,
  "img": "https//examplepage.com/modifiedLinkOfSeriePoster.jpg",
  "genre": ["modified", "genres"],
  "rate": 9.3
}

Series


PATCH serie

Modify a serie using the /series/:id endpoint. You need to modify only 1 value in the body, but you can modify all the values you want.

Remember that nothing in real will be inserted into the database, it will just return you the modified object. If you then try to access the objet with the id you will get the original object.

Example Request:

[PATCH] https://allinoneapi.vercel.app/series/c86373e1-7265-4d41-9ce8-8870c9e6d73a
# Body
{
  "description": "Modified description...",
  "rate": 9.9
}

Response:

{
  "id": "c86373e1-7265-4d41-9ce8-8870c9e6d73a",
  "title": "Avatar: The Last Airbender",
  "description": "Modified description...",
  "started": 1111,
  "ended": 2222,
  "seasons": 5,
  "episodes": 55,
  "img": "https//examplepage.com/modifiedLinkOfSeriePoster.jpg",
  "genre": ["Animation", "Action", "Adventure"],
  "rate": 9.9
}

Series


DELETE serie

Delete a serie using the /series/:id endpoint.

Remember that nothing in real will be deleted from the database, it will just return you a message as if it had been deleted. If you then try to access the objet with the id you will get the original object.

Example Request:

[DELETE] https://allinoneapi.vercel.app/series/c86373e1-7265-4d41-9ce8-8870c9e6d73a

Response:

{
  "message": "Serie deleted succesfully."
}

Quotes


GET all quotes

Access the list of 16 quotes using the /qutoes endpoint.

If you want the list in any particular language don't forget to use de "lang" param.

Request:

[GET] https://allinoneapi.vercel.app/quotes

Response:

[
  {
    "id": "1fb91502-9e53-449b-ba30-6e7d9f0d74b2",
    "text": "It is hard to fail, but it is worse never to have tried to succeed.",
    "author": "Theodore Roosevelt",
    "category": ["Motivation", "Fail"]
  },
  // ...
]

Language

The param "lang" will allow you to get the list of all the quotes but translated into any language available. To check available languages see Languages section.

Request:

[GET] https://allinoneapi.vercel.app/quotes?lang=es

Response:

[
  {
    "id": "1fb91502-9e53-449b-ba30-6e7d9f0d74b2",
    "text": "Es difícil fracasar, pero es peor no haber intentado nunca tener éxito.",
    "author": "Theodore Roosevelt",
    "category": ["Motivación", "Fallar"]
  },
  // ...
]

Quotes


GET filtered quotes

Use different params to get a list of quotes from /quotes endpoint.

All params and values must be written in English even if you are going to request a translation with "lang".

Language

The param "lang" will allow you to get the list of all the quotes but translated into any language available. To check available languages see Languages section.

Request:

[GET] https://allinoneapi.vercel.app/quotes?lang=es

Category

To filter by category you need to use the param "category". You can only filter by multiple categories adding multiple "category" params.

By default if you filter with multiple categories it will respond with any quote that has any of the categories. If you want it just to retrieve the quotes that have all the categories you should add the "allcats" param with value "true".

This param can be combined with any other param.

The categories available to use as a value are:

Example Request:

[GET] https://allinoneapi.vercel.app/quotes?category=Dreams

Author

To filter by author you need to use the param "author". If the value of the param is included as a substring in the author of the object, it will be returned. It can be combined with any other param.

Example Request:

[GET] https://allinoneapi.vercel.app/quotes?author=Maxwell

Quotes


GET quote with ID

Access to an specific quote using the id with the /quotes/:id endpoint.

Example Request:

[GET] https://allinoneapi.vercel.app/quotes/440bcfeb-2a06-4fd2-a4ef-2107636b6e96

Response:

{
  "id": "440bcfeb-2a06-4fd2-a4ef-2107636b6e96",
  "text": "The future belongs to those who believe in the beauty of their dreams.",
  "author": "Eleanor Roosevelt",
  "category": ["Motivation", "Dreams"]
}

Language

The only param available when getting with an id is "lang" which allows you to choose between any supported translation. To check available languages see Languages section.

Example Request:

[GET] https://allinoneapi.vercel.app/quotes/440bcfeb-2a06-4fd2-a4ef-2107636b6e96?lang=es

Response:

{
  "id": "440bcfeb-2a06-4fd2-a4ef-2107636b6e96",
  "text": "El futuro pertenece a quienes creen en la belleza de sus sueños.",
  "author": "Eleanor Roosevelt",
  "category": ["Motivación", "Sueños"]
}

Quotes


POST quote

Create a quote using the /quotes endpoint.

Remember that nothing in real will be inserted into the database, it will just return you the new object. If you then try to access the objet with the id you will not be able to retreave it.

Example Request:

[POST] https://allinoneapi.vercel.app/quotes
# Body
{
  "text": "Quote text",
  "author": "Quote author",
  "category": ["example", "categories"]
}

Response:

{
  "id": "UUID-autogenerated",
  "text": "Quote text",
  "author": "Quote author",
  "category": ["example", "categories"]
}

Quotes


PUT quote

Modify a quote using the /quotes/:id endpoint. It needs you to send all the values in the body, except the id.

Remember that nothing in real will be inserted into the database, it will just return you the modified object. If you then try to access the objet with the id you will get the original object.

Example Request:

[PUT] https://allinoneapi.vercel.app/quotes/440bcfeb-2a06-4fd2-a4ef-2107636b6e96
# Body
{
  "text": "Modified text",
  "author": "Modified author",
  "category": ["other", "categories"]
}

Response:

{
  "id": "440bcfeb-2a06-4fd2-a4ef-2107636b6e96",
  "text": "Modified text",
  "author": "Modified author",
  "category": ["other", "categories"]
}

Quotes


PATCH quote

Modify a quote using the /quote/:id endpoint. You need to modify only 1 value in the body, but you can modify all the values you want.

Remember that nothing in real will be inserted into the database, it will just return you the modified object. If you then try to access the objet with the id you will get the original object.

Example Request:

[PATCH] https://allinoneapi.vercel.app/quotes/355d448e-1aa7-4569-95f0-7b3886c7cc05
# Body
{
  "author": "Modified author"
}

Response:

{
  "id": "355d448e-1aa7-4569-95f0-7b3886c7cc05",
  "text": "We can do anything we want to do if we stick to it long enough.",
  "author": "Modified author",
  "category": ["Motivation"]
}

Quotes


DELETE quote

Delete a quote using the /quotes/:id endpoint.

Remember that nothing in real will be deleted from the database, it will just return you a message as if it had been deleted. If you then try to access the objet with the id you will get the original object.

Example Request:

[DELETE] https://allinoneapi.vercel.app/quotes/355d448e-1aa7-4569-95f0-7b3886c7cc05

Response:

{
  "message": "quote deleted succesfully."
}

Books


GET all books

Access the list of 6 books using the /books endpoint.

If you want the list in any particular language don't forget to use de "lang" param.

Request:

[GET] https://allinoneapi.vercel.app/books

Response:

[
  {
    "id": "23a33225-f7af-4c38-98bc-51aecf39bf20",
    "title": "One Hundred Years of Solitude",
    "description": "This novel is a multi-generational saga that focuses on...",
    "author": "Gabriel García Márquez",
    "year": 1967,
    "img": "https://thegreatestbooks.club/3jx639wkwk8xq18chslnzx4vd0pi",
    "genre": ["Fiction"]
  },
  // ...
]

Language

The param "lang" will allow you to get the list of all the books but translated into any language available. To check available languages see Languages section.

Request:

[GET] https://allinoneapi.vercel.app/books?lang=es

Response:

[
  {
    "id": "23a33225-f7af-4c38-98bc-51aecf39bf20",
    "title": "Cien Años De Soledad",
    "description": "Muchos años después, frente al pelotón de fusilamien...",
    "author": "Gabriel García Márquez",
    "year": 1967,
    "img": "https://cdn.agapea.com/Debolsillo/Cien-anos-de-soledad-i6...",
    "genre": ["Ficción"]
  },
  // ...
]

Books


GET filtered books

Use different params to get a list of books from /books endpoint.

All params and values must be written in English even if you are going to request a translation with "lang".

Language

The param "lang" will allow you to get the list of all the books but translated into any language available. To check available languages see Languages section.

Request:

[GET] https://allinoneapi.vercel.app/books?lang=es

Genre

To filter by genre you need to use the param "genre". You can only filter by multiple genres adding multiple "genre" params.

By default if you filter with multiple genres it will respond with any book that has any of the genres. If you want it just to retrieve the books that have all the genres you should add the "allgenres" param with value "true".

This param can be combined with any other param.

The categories available to use as a value are:

Example Request:

[GET] https://allinoneapi.vercel.app/books?genre=Novel

Year

To filter by year you need to use the param "year". You can only filter by 1 year per request, and it can be combined with any other param.

Example Request:

[GET] https://allinoneapi.vercel.app/books?year=1949

Books


GET book with ID

Access to an specific book using the id with the /books/:id endpoint.

Example Request:

[GET] https://allinoneapi.vercel.app/books/df26c5ad-0316-47a1-9907-1b13241ce74b

Response:

{
  "id": "df26c5ad-0316-47a1-9907-1b13241ce74b",
  "title": "The Divine Comedy",
  "description": "In this epic poem, the protagonist embarks on an extraordinary journey...",
  "author": "Dante Alighieri",
  "year": 1301,
  "img": "https://thegreatestbooks.club/a6mt6a2926cmpd1d501ingjh4b14",
  "genre": ["Fiction", "Poetry"]
}

Language

The only param available when getting with an id is "lang" which allows you to choose between any supported translation. To check available languages see Languages section.

Example Request:

[GET] https://allinoneapi.vercel.app/books/df26c5ad-0316-47a1-9907-1b13241ce74b?lang=es

Response:

{
  "id": "df26c5ad-0316-47a1-9907-1b13241ce74b",
  "title": "La divina comedia",
  "description": "Este vasto poema en tres partes presenta alegóricamente el itinerario del alma...",
  "author": "Dante Alighieri",
  "year": 1301,
  "img": "https://cdn.agapea.com/Sial-Ediciones/La-divina-comedia-i6n7403773.jpg",
  "genre": ["Ficción", "Poesia"]
}

Books


POST book

Create a book using the /books endpoint.

Remember that nothing in real will be inserted into the database, it will just return you the new object. If you then try to access the objet with the id you will not be able to retreave it.

Example Request:

[POST] https://allinoneapi.vercel.app/books
# Body
{
  "title": "Book title",
  "description": "Book description...",
  "author": "Book author",
  "year": 1111,
  "img": "https//examplepage.com/linkOfBookImg.jpg",
  "genre": ["example", "genres"]
}

Response:

{
  "id": "UUID-autogenerated",
  "title": "Book title",
  "description": "Book description...",
  "author": "Book author",
  "year": 1111,
  "img": "https//examplepage.com/linkOfBookImg.jpg",
  "genre": ["example", "genres"]
}

Books


PUT book

Modify a book using the /books/:id endpoint. It needs you to send all the values in the body, except the id.

Remember that nothing in real will be inserted into the database, it will just return you the modified object. If you then try to access the objet with the id you will get the original object.

Example Request:

[PUT] https://allinoneapi.vercel.app/books/df26c5ad-0316-47a1-9907-1b13241ce74b
# Body
{
  "title": "Modified title",
  "description": "Modified description...",
  "author": "Modified author",
  "year": 9999,
  "img": "https//examplepage.com/ModifiedLinkOfBookImg.jpg",
  "genre": ["modified", "genres"]
}

Response:

{
  "id": "df26c5ad-0316-47a1-9907-1b13241ce74b",
  "title": "Modified title",
  "description": "Modified description...",
  "author": "Modified author",
  "year": 9999,
  "img": "https//examplepage.com/ModifiedLinkOfBookImg.jpg",
  "genre": ["modified", "genres"]
}

Books


PATCH book

Modify a book using the /books/:id endpoint. You need to modify only 1 value in the body, but you can modify all the values you want.

Remember that nothing in real will be inserted into the database, it will just return you the modified object. If you then try to access the objet with the id you will get the original object.

Example Request:

[PATCH] https://allinoneapi.vercel.app/books/df26c5ad-0316-47a1-9907-1b13241ce74b
# Body
{
  "description": "Modified description...",
  "year": 2222
}

Response:

{
  "id": "df26c5ad-0316-47a1-9907-1b13241ce74b",
  "title": "The Divine Comedy",
  "description": "Modified description...",
  "author": "Dante Alighieri",
  "year": 2222,
  "img": "https://thegreatestbooks.club/a6mt6a2926cmpd1d501ingjh4b14",
  "genre": ["Fiction", "Poetry"]
}

Books


DELETE book

Delete a book using the /books/:id endpoint.

Remember that nothing in real will be deleted from the database, it will just return you a message as if it had been deleted. If you then try to access the objet with the id you will get the original object.

Example Request:

[DELETE] https://allinoneapi.vercel.app/books/df26c5ad-0316-47a1-9907-1b13241ce74b

Response:

{
  "message": "Book deleted succesfully."
}