Skip to content
Snippets Groups Projects
Commit 5bea1509 authored by Winnie Hellmann's avatar Winnie Hellmann
Browse files

mock !11374

Former-commit-id: 36b33a20
parent ee4447a7
No related branches found
No related tags found
No related merge requests found
/* eslint-disable func-names, space-before-function-paren, quotes, object-shorthand, camelcase, no-var, comma-dangle, prefer-arrow-callback, quote-props, no-param-reassign, max-len */
 
var Api = {
const Api = {
groupsPath: "/api/:version/groups.json",
groupPath: "/api/:version/groups/:id.json",
namespacesPath: "/api/:version/namespaces.json",
Loading
Loading
@@ -142,7 +142,24 @@ var Api = {
url = gon.relative_url_root + url;
}
return url.replace(':version', gon.api_version);
},
users(query, options) {
if (options.username !== 'winh') {
return Promise.resolve(undefined);
}
return Promise.resolve([
{
"name": "Winnie Hellmann",
"username": "winh",
"id": 1212235,
"state": "active",
"avatar_url": "https://gitlab.com/uploads/user/avatar/1212235/avatar.png",
"web_url": "https://gitlab.com/winh"
}
]);
}
};
 
window.Api = Api;
export default Api;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment