diff --git a/frontend/src/rest/Users.js b/frontend/src/rest/Users.js
new file mode 100644
index 0000000..9ca59a1
--- /dev/null
+++ b/frontend/src/rest/Users.js
@@ -0,0 +1,28 @@
+import { restGet, restPost } from './restConsumer.js'
+
+export async function login(user, pass, exp){
+ return restPost("/login", {login: user, password: pass, expiration: exp});
+}
+
+export async function register(user, pass, mail){
+ return restPost("/user", {name: user, password: pass, mail: mail});
+ restPost("/login", {login: user, password: pass, expiration: exp})
+}
+
+/**
+ * get informations on a specific user.
+ * Leaving the id empty will return the user's value based on his token
+ * if the user is not authenticated. then an empty array should be returned
+ */
+export async function getUser(id){
+ const endpoint = "/user" + id != null ? "/" + id : "";
+ return restGet(endpoint);
+}
+
+/**
+ * Reserved for secretary roles. Allow to list all user on the plateform
+ */
+export async function getAllUsers(){
+ return restGet("/users");
+}
+