Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

https://docs.google.com/presentation/d/12JW58Iokn-3IdwifUeWab8F8vPC8HFHqZjkbERtwsLc/edit#slide=id.ge71b9a585c_0_46

Fetching Question sets and questions from DIKSHA to External Apps through filters -

  • Once question sets are published on DIKSHA, there would need to be some search filters based on which question sets should be fetched by external apps.

  • Search filters can be defined from the Question Set and Question metadata -

  • Question Set Metadata -

  1. Primary Category, Board, Medium, Grade, Subject, Target Audience, Visibility

The 2 problem statements are -

...

  • Add the Import button in the project to publish content.

    Anyone can extract the token from the app and use all APIs externally
    1. Need to check whether questions get published in private mode.

Issue in this approach

    1. .

Approach 2 - Unlisted Publishing of Question Sets

...

  • Add unlist publish support in the existing import API if it is not there.

  • Add the Import button along with the option to publish it as unlist/public in the project.

Issue in this approach

  • Anyone can extract the token from the app and use all APIs externally.

Show Questions in the mobile App:

We’ll show

Getting Publish Project/Content Ids to external servers:

The user will enter the webhook URL while publishing the Questionset/Question to DIKSHA.

Once the questionset/question will be published to Diksha it will send this information to the webhook URL with the following data.

Code Block
{
    "type": "QuestionSet",
    "identifier": "do_someid",
    "board": "CBSE",
    "grade": "class 6",
    "medium": "english"
}

Process to show private content on VDN

Currently, we are getting data from “action/composite/v3/search” search API.

Problem Statement: Composite search API will not return a private question-set, resulting in not being able to view question-set in the program list.

Solution: We will use /v3/private/search API to get question-sets.

When to use private search: If program collections length is not equal to composite search length then we’ll use private API to get content.

Following API will be used to show private content:

Private Search: /v3/private/search
Above API list all the private questionset

Hierarchy Read: /api/questionset/v1/hierarchy/do_id

Above API will be used in both cases

Question Read: /api/question/v1/read/do_id

Above API will be used in both cases

What will happen in the following scenario:
If the question--set status is private and the question status is Default, will the question is available publically or not?