-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocs
111 lines (82 loc) · 2.85 KB
/
docs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
ROLES:
// [email protected] - SUPPORT
// [email protected] - FINANCE
_______________________________________________________________________________________________________________________
//LOGIN
1. Se necesita loguear con un usuario y contraseña -> POST http://<ip>:<port>/login
OK -> 200
REQUEST
{
"username": "[email protected]",
"password": "123"
}
RESPONSE
{
"token": "eyJhbGciOiJIUzUxMiJ9.eyJyb2xlcyI6WyJGSU5BTkNFIl0sInBhc3N3b3JkLWRlbW8iOiJzYW1wbGUiLCJ1c2VybmFtZSI6ImpuYW5vQHZzcGVydS5jb20iLCJzdWIiOiJqbmFub0B2c3BlcnUuY29tIiwiaWF0IjoxNzA2MDgxMjI3LCJleHAiOjE3MDYwODQwMjd9.nkQQR8tyauyEDwnJ2xD9WWoxPtN6qtPHgAmOtbMPxaWVBTPNae6U79MNIGOe3InexJlZyNZVIbwbMzhlbAnKTw",
"expiration": "2024-01-24T08:13:47.000+00:00"
}
ERROR 401 | 403
_______________________________________________________________________________________________________________________
//FINANCE
1. Se necesita listar los clientes -> GET http://<ip>:<port>/customers
2. Habilitar/ deshabilitar un cliente -> PATCH http://<ip>:<port>/customers/{id}
3. Se necesita filtrar por ruc, businessName -> se hara la busca dinamica por el front con el filtrado de la tabla (no importa la posicion, solo que contenga el texto de la busqueda)
GET OK -> 200
[
{
"id": "65b0a587cab1fa681c9532ec",
"ruc": "20510910517 ",
"businessName": " VENTURA SOLUCIONES",
"phone": "(01) 2432545",
"email": "[email protected]",
"status": false
},
{
"id": "65b0a659cab1fa681c9532ed",
"ruc": "30876543210",
"businessName": "INNOVATECH SERVICES",
"phone": "(02) 9876543",
"email": "[email protected]",
"status": true
}
]
_______________________________________________________________________________________________________________________
//SUPPORT
1. Se necesita listar los logs -> http://<ip>:<port>/logs
2. Se necesita filtrar por ruc, objectTypeAndDocEntry, seriesAndCorrelative -> se hara la busca dinamica por el front con el filtrado de la tabla (no importa la posicion, solo que contenga el texto de la busqueda)
MONGO DB
1. consulta de manera ordenada con query
db.logs.find().sort({requestDate: 1})
2. consulta todos los registros de tabla
db.getCollection("logs").find({})
https://dashboard.heroku.com/apps/ventura-flux2024
https://cloud.mongodb.com/v2/65b3123fd93c9a625854ee61#/clusters
PARA COMMITS EN HEROKU
git remote -v
git add .
git commit -m "commit"
heroku git:remote -a ventura-flux2024
git push heroku master
HEROKU
Lima4040$$12
GITHUB VENTURA FRONT BAK
jolucode
Lima40401010
MONGO ACCESOS
Lima4040$$12
Lima40401010
HEROKU
heroku login
git init
git status
git remote -v
heroku git:remote -a back2
git add .
git commit -m 'message'
git push heroku master
DESPLIEUGE ANGULAR
https://www.youtube.com/watch?v=D2oOWgCuBIY
DESPLIEUGE BACK