Gestion de Bibliotique
Home
API
  • Client > Authentification
  • Client > Profile
  • Client > CRUD
  • Livres
  • Emprunts
  • Categories
Team
  • Nassim MZILI
  • Abderrahim El Ouali
Home
API
  • Client > Authentification
  • Client > Profile
  • Client > CRUD
  • Livres
  • Emprunts
  • Categories
Team
  • Nassim MZILI
  • Abderrahim El Ouali
GitHub
GitLab
  1. Auth
  • Get Started
  • API
    • Clients
      • Auth
        • Register a new client
          POST
        • Login a client
          POST
        • Logout a client
          POST
      • Profile
        • Update client profile
        • Update client password
        • Get client details
        • Get all emprunts for a client
      • CRUD (Admin)
        • Get all clients
        • Get a client by ID
        • Update a client
        • Delete a client
    • Livres
      • Get all books
      • Get a book by ID
      • Add a new book
      • Update a book
      • Delete a book
    • Emprunts
      • Create a new emprunt
      • Get emprunt by ID
      • Update an emprunt
      • Delete an emprunt
      • Get all emprunts
      • Get all emprunts for a specific client
      • Return a book
    • Categories
      • Get all categories
      • Get a category by ID
      • Add a new category
      • Update a category
      • Delete a category
  1. Auth

Logout a client

POST
https://gestion-bibliotique-pfe.netlify.app/api/auth/login
authauthentificationlogoutsign out
Maintainer:Nassim MZILI

@access Client#

Request

Header Params
Authorization
string 
required
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjFjZmY2MWUzNTYzOGJlMTUyZGY1NyIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTczOTcwODUwMCwiZXhwIjoxNzM5Nzk0OTAwfQ.mwHc86DzX3dzXigG_A2uOaPQJCJLad1CGKnoIU19s4c

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gestion-bibliotique-pfe.netlify.app/api/auth/login' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjFjZmY2MWUzNTYzOGJlMTUyZGY1NyIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTczOTcwODUwMCwiZXhwIjoxNzM5Nzk0OTAwfQ.mwHc86DzX3dzXigG_A2uOaPQJCJLad1CGKnoIU19s4c'

Responses

🟢200Success
application/json
Body
success
boolean 
required
message
string 
required
data
null 
required
Example
{
  "success": true,
  "message": "Logged out successfully",
  "data": null
}
🟠401Unauthorized
🔴500Server Error
Previous
Login a client
Next
Update client profile
Built with