-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.txt
42 lines (20 loc) · 1.01 KB
/
api.txt
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
/api
POST /api/create-user
{"username":"davidisimo040", password:"sadad", email:"[email protected]"}
Raspuns:
{"message":"Un mesaj care arata ce s-a intamplat"}
Status: 201 pentru succes, alt cod altfel si motivul erorii se gaseste in json in campul message
------------------------------------------------------------------------------------------------------------------------
POST /api/login
body : {"username":"davidisimo040", password:"sadad", "email":"[email protected]"}
Optional: Unul din campurile email sau username poate lipsi
Raspuns :
{"message":"Un mesaj care arata ce s-a intamplat", "token":"token, daca logarea a avut succes"}
Status:
200 pentru succes, alt cod altfel si motivul erorii se gaseste in json in campul message
------------------------------------------------------------------------------------------------------------------------
Authorization: Bearer "token"
getSize() --> GOOGLE DRIVE
--> DROP BOX
--> ONE DRIVE
getAvailableSpace() TOTAL_AVAILABLE - TOTAL_USED