-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnote.txt
177 lines (176 loc) · 4.34 KB
/
note.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
BASE_URL = hamyiar.ir
***************************
POST URL:/register
-----------------
form parameter in body:
name_family :string
email :string
username :string
password :string
output:
json output:[
error : boolean,
message : string
]
=======================================================
GET URL:/user/information
------------------
Header parameter:
Authentication-Info: string // api_key
output:
json output:[
name_family : string,
email :string,
mobile_number: string,
gender : int,
birthday_date: date,
score : int,
account_card : string,
username : string
]
========================================================
PUT URL:/user/information
Header parameter:
Authentication-Info: string // api_key
form parameters in body:
name_family : string
mobile_number : string
gender : int // (0-> female, 1->male)
account_card : string
birthday_date : string // (1997-04-06)
email : string
output:
json output:[
error : bool , message : string
]
=========================================================
POST URL:/login
form parameter:
username: string
password: string
output:
json output:[
[error : bool, message: string] // {....} if error is false then {}
{,[api_key: string]} // exists else {} doesn't exist
]
=========================================================
GET URL: /companies -> get all companies' information
output:
json output:[
[error:bool, message : string],
[
[
id : int,
c_name :string,
c_address :string,
c_email : string,
c_founded_date:date,
c_description : string,
c_tel : string(11)
],
[
......
],
.......
]
]
===========================================================
POST URL: /companies/add -> add new company
form header:
Authentication-Info: string // api_key
form parameter:
c_name : string
c_address : string
c_email : string
c_founded_date :date
c_description : string
c_tel :string(11)
position : string
output:
json output:[error:bool, message: string]
============================================================
POST URL /companies/add/member -> add member to existing company
form header:
Authentication-Info: string // api_key
form parameter:
company_id: int
username : string
position : string
output:
json output: [error: bool, message:string]
=============================================================
GET URL: /projects -> get all projects
output:
json output:[
[error:bool, message : string],
[
[
id : int,
p_name :string,
p_description :string,
p_start_date : date,
p_finish_date : date,
p_budget : int,
p_founded : int
],
[
......
],
.......
]
]
===============================================================
POST URL: /projects -> return all projects
form header:
Authentication-Info: string // api_key
form parameter:
p_name :string
p_description :string
p_start_date : date
p_finish_date : date
p_budget : int
position : string
================================================================
POST URL: /projects/phases -> add phase to a project
form header:
Authentication-Info: string // api_key
form parameter:
project_id : string
start_date : date
finish_date: date
description: string
budget : int
output:
json output:[error :bool, message:string]
================================================================
GET URL: /projects/phases
query params:
project_id: int
output:
json output:[
[error:bool, message : string],
[
[
id : int,
priject_id : int,
start_date : date
finish_date : date,
description : string,
budget : int
],
[
......
],
.......
]
]
=================================================================
POST URL: /investor
form header:
Authentication-Info: string // api_key
form parameter:
amount: int
p_name: string // if [company_id] didnt set -------> user investor run
[company_id] : int |---- else -> company investor run
output:
json output:[error: bool, message: string]