team19hackathon2021 / issues-curriki

0 stars 0 forks source link

to create a new Java API implementation class to extend and override any generated API functionality about site users in a database and a search engine. #44

Open computate opened 3 years ago

computate commented 3 years ago

Mission to create a new Java API implementation class to extend and override any generated API functionality about site users in a database and a search engine.

Mission

Your mission, should you choose to accept it, is to create a new Java API implementation class to extend and override any generated API functionality about site users in a database and a search engine. .

The day of the operation is October 26th, 2021

You will have 4 hours to complete your mission.

One of the project’s major goals is to establish https://cc.curriki.org as the global authoring and distribution hub and library for openly licensed, next generation, open educational resources (OER+) under the least restrictive Creative Commons license, CC-BY.

You will be joining a team of the boldest

of all Red Hatters for this mission, who will be at your service developing the code and automating the deployment to OpenShift.

How to get started:

Follow the instructions here to setup the project: https://github.com/team19hackathon2021/ActiveLearningStudio-API/tree/master/src

The details of your mission:

package org.curriki.api.enus.user;

import org.curriki.api.enus.request.SiteRequestEnUS;
import io.vertx.core.WorkerExecutor;
import io.vertx.core.eventbus.EventBus;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.auth.authorization.AuthorizationProvider;
import io.vertx.ext.auth.oauth2.OAuth2Auth;
import io.vertx.ext.web.client.WebClient;
import io.vertx.pgclient.PgPool;

/**
 **/

public class SiteUserEnUSApiServiceImpl extends SiteUserEnUSGenApiServiceImpl {
}

Create the userDefine method inside the SiteUserEnUSApiServiceImpl class

    public Boolean userDefine(SiteRequestEnUS siteRequest, JsonObject jsonObject, Boolean patch) {
        if("/user".equals(siteRequest.getRequestUri()))
            return true;
        else
            return super.userDefine(siteRequest, jsonObject, patch);
    }

This message will not self-destruct.

This message will not self destruct, because this project is open source.