Giter VIP home page Giter VIP logo

mangabox's Introduction

Documentation de l'API des œuvres

Installation

  1. Assurez-vous d'avoir Node.js installé sur votre machine.
  2. Clonez ce projet à partir du référentiel GitHub.
  3. Exécutez la commande npm install pour installer les dépendances.

Configuration de la base de données

  1. Créez une base de données MySQL.
  2. Dans le fichier db.js, configurez les informations de connexion à la base de données (nom, nom_utilisateur, mot_de_passe et hote_de_la_base_de_donnees).

Exécution de l'API

  1. Exécutez la commande npm start pour lancer l'API.
  2. L'API sera accessible à l'adresse http://localhost:3000.

Endpoints

Utilisateurs

  • POST /utilisateurs : Crée un nouvel utilisateur.
  • POST /utilisateurs/login : Vérifie les informations d'identification de l'utilisateur.

Œuvres

  • GET /oeuvres : Récupère toutes les œuvres.
  • GET /oeuvres/:id : Récupère une œuvre par son ID.
  • PUT /oeuvres/:id : Modifie une œuvre.
  • DELETE /oeuvres/:id : Supprime une œuvre.
  • POST /oeuvres : Crée une nouvelle œuvre.
  • PUT /oeuvres : Modifie plusieurs œuvres d'un coup.
  • DELETE /oeuvres : Supprime plusieurs œuvres d'un coup.

Consultez la documentation complète pour plus de détails sur les paramètres et les réponses de chaque endpoint.

mangabox's People

Contributors

lucassanchez82 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.