From 5f0270495164a557b8af8556080ac71140319d03 Mon Sep 17 00:00:00 2001 From: Jeiel Lima Miranda Date: Wed, 23 Oct 2024 09:29:05 -0300 Subject: [PATCH] Update DOCUMENTATION.md --- DOCUMENTATION.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index d393323..2c1b95e 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -323,6 +323,30 @@ notifications: true } ``` + +> If you prefer, you can download the Axios library and use the script to create an account and obtain a token, in case you don't have a way to get it in mind. +> `npm install axios` +> `node script.js` +> ```js +> const axios = require('axios'); +> const data = { +> name: "Name", +> email: "email@email.com", +> password: "1234...", // YOU PASSWORD +> notifications: true +> }; +> +> axios.post('https://www.abibliadigital.com.br/api/users', data, { +> headers: { 'Content-Type': 'application/json' } +> }) +> .then(response => { +> console.log(response.data); +> }) +> .catch(error => { +> console.error('Erro:', error.response.data); +> }); +> ``` +