https://fintech-no-contry.herokuapp.com
AUTHORIZATION |
---|
none |
const requestOptions = {
method: 'GET',
redirect: 'follow',
};
fetch('https://fintech-no-contry.herokuapp.com', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/auth/login
AUTHORIZATION | API Key |
---|---|
Key | api |
Value | key |
const raw = { username: 'username', password: 'password' };
const requestOptions = {
method: 'POST',
body: JSON.stringify(raw),
redirect: 'follow',
headers: {
api: 'apiKey',
Accept: 'application/json',
'Content-Type': 'application/json',
},
};
fetch(
'https://fintech-no-contry.herokuapp.com/api/v1/auth/login',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/users
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const token = 'token';
const requestOptions = {
method: 'GET',
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch('https://fintech-no-contry.herokuapp.com/api/v1/users', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/users
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const token = 'token';
const requestOptions = {
method: 'GET',
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch(
'https://fintech-no-contry.herokuapp.com/api/v1/users/{id}',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/users
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const raw= {
"username": "username",
"email": "example@example.com",
"password": "password"
"role": "admin"
"peopleId":"peopleId"
};
const token = 'token';
const requestOptions = {
method: 'POST',
body: raw
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch('https://fintech-no-contry.herokuapp.com/api/v1/users', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/users
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const raw= {
"username": "username",
"email": "example@example.com",
"password": "password"
"role": "admin"
"peopleId":"peopleId"
};
const token = 'token';
const requestOptions = {
method: 'PUT',
body: raw
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch('https://fintech-no-contry.herokuapp.com/api/v1/users/{id}', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/users
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const token = 'token';
const requestOptions = {
method: 'DELETE',
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch(
'https://fintech-no-contry.herokuapp.com/api/v1/users/{id}',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/people
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const token = 'token';
const requestOptions = {
method: 'GET',
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch('https://fintech-no-contry.herokuapp.com/api/v1/people', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/people
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const token = 'token';
const requestOptions = {
method: 'GET',
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch(
'https://fintech-no-contry.herokuapp.com/api/v1/people/{id}',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/people
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const raw= {
"name":"name",
"lastName":"lastname",
"user":{
"username": "username",
"email": "example@example.com",
"password": "password",
"role": "admin"
}
};
const token = 'token';
const requestOptions = {
method: 'POST',
body: raw
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch('https://fintech-no-contry.herokuapp.com/api/v1/people/', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/people
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const raw= {
"name":"name",
"lastName":"lastname",
"user":{
"username": "username",
"email": "example@example.com",
"password": "password",
"role": "admin"
}
};
const token = 'token';
const requestOptions = {
method: 'PUT',
body: raw
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch('https://fintech-no-contry.herokuapp.com/api/v1/people/{id}', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
https://fintech-no-contry.herokuapp.com/api/v1/people
AUTHORIZATION | Bearer Token |
---|---|
Token | token |
const token = 'token';
const requestOptions = {
method: 'DELETE',
redirect: 'follow',
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
};
fetch(
'https://fintech-no-contry.herokuapp.com/api/v1/people/{id}',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));