-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuser.http
128 lines (99 loc) · 3.1 KB
/
user.http
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
###User's Requests
###Registration
POST http://localhost:4000/user-api/user
Content-Type: application/json
{
"userType":"user",
"empid":"23071A05H9",
"username":"Apoorva Sai Karthikey",
"password":"ask01",
"teamno":1
}
###Signin
POST http://localhost:4000/user-api/login
Content-Type: application/json
{
"userType":"user",
"empid":"23071A05H9",
"password":"ask01"
}
###Display all users when teamno is specified
GET http://localhost:4000/user-api/users/1
###Publications Data
POST http://localhost:4000/user-api/publications
Content-Type: application/json
{
"username":"Apoorva",
"typeOfPublication":"Journal",
"nameOfJournal":"TheJournalOfReactMongoAndNode",
"titleOfPaper":"Xcelifiee",
"dateOfPublication":"2024-11-14",
"indexing":"Scopus",
"authorPosition":1,
"linkForProof":"https://www.youtube.com/watch?v=ANk4fmRNyuE"
}
###get all the publications data
GET http://localhost:4000/user-api/publicationsData
###Update the users with titleOfPaper
PUT http://localhost:4000/user-api/add-title
Content-Type: application/json
{
"username":"Apoorva",
"typeOfPublication":"Journal",
"nameOfJournal":"TheJournalOfReactMongoAndNode",
"titleOfPaper":"Xcelifiee",
"dateOfPublication":"2024-11-14",
"indexing":"Scopus",
"authorPosition":1,
"linkForProof":"https://www.youtube.com/watch?v=ANk4fmRNyuE"
}
###Add patent data to db
POST http://localhost:4000/user-api/patents
Content-Type: application/json
{
"titleOfPatent":"XcelPatent",
"nameOfInventor":"AizenSosuke",
"status":"Approved"
}
###Add fundingProps data to db
POST http://localhost:4000/user-api/fundprops
Content-Type: application/json
{
"titleOfProposal":"AttackOnMoney",
"detailsOfPiCopi":"MikasaAckerman,ErenYaeger",
"fundingAgency":"LeviStudios",
"amount":10000,
"fundStatus":"Applied"
}
###get all users data sort by teamnos
GET http://localhost:4000/user-api/usersSortData
###get publications data sort by empid
GET http://localhost:4000/user-api/publicationsSortData
###get publications data sort by teamno
GET http://localhost:4000/user-api/publicationsSortTeamData
###get patents sort by teamno
GET http://localhost:4000/user-api/patentsSortData
###get fundingPropsData sort by teamno
GET http://localhost:4000/user-api/fundingPropsSortData
###delete user based on empid
DELETE http://localhost:4000/user-api/deleteUser/22071A05H9
###delete publication based on empid
DELETE http://localhost:4000/user-api/deletePublications/22071A05H9
###delete publications based on titleOfPaper
DELETE http://localhost:4000/user-api/deletePublications/ApoorvaSai
###edit data acc to empid
PUT http://localhost:4000/user-api/editForms/23071A05H9
Content-Type: application/json
{
"userType":"user",
"empid":"23071A05H9",
"username":"Apoorva Sai Karthikey",
"password":"ask01",
"teamno":1
}
###get all publications by teamno
GET http://localhost:4000/user-api/getPublications/1
###get all patents by teamno
GET http://localhost:4000/user-api/getPatents/1
###get all funding Proposals by teamno
GET http://localhost:4000/user-api/getFundingProposals/1