Skip to content

Lamia034/YouQuiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouQuiz

API d’une plateforme d’examens et de quiz avec spring boot Diagramme de class : alt text

API Request

GET http://localhost:8080/subjects

API Response

[
    {
        "subject_id": 1,
        "title": "Your Subject Title",
        "parent": null,
        "children": [
            {
                "subject_id": 2,
                "title": "philoosophyyy",
                "parent_id": 1
            },
            {
                "subject_id": 602,
                "title": "arabic",
                "parent_id": 1
            }
        ]
    },
    {
        "subject_id": 2,
        "title": "philoosophyyy",
        "parent": {
            "subject_id": 1,
            "title": "Your Subject Title",
            "parent": null,
            "children": [
                {
                    "subject_id": 2,
                    "title": "philoosophyyy",
                    "parent_id": 1
                },
                {
                    "subject_id": 602,
                    "title": "arabic",
                    "parent_id": 1
                }
            ]
        },
        "children": []
    },
    {
        "subject_id": 302,
        "title": "arabiccc ",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 352,
        "title": "french",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 353,
        "title": "french",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 402,
        "title": "french",
        "parent": null,
        "children": [
            {
                "subject_id": 603,
                "title": "spanish",
                "parent_id": 402
            }
        ]
    },
    {
        "subject_id": 403,
        "title": "french",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 405,
        "title": "french",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 452,
        "title": "arabic",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 453,
        "title": "arabic",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 502,
        "title": "arabic",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 503,
        "title": "arabic",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 552,
        "title": "arabic",
        "parent": null,
        "children": []
    },
    {
        "subject_id": 602,
        "title": "arabic",
        "parent": {
            "subject_id": 1,
            "title": "Your Subject Title",
            "parent": null,
            "children": [
                {
                    "subject_id": 2,
                    "title": "philoosophyyy",
                    "parent_id": 1
                },
                {
                    "subject_id": 602,
                    "title": "arabic",
                    "parent_id": 1
                }
            ]
        },
        "children": []
    },
    {
        "subject_id": 603,
        "title": "spanish",
        "parent": {
            "subject_id": 402,
            "title": "french",
            "parent": null,
            "children": [
                {
                    "subject_id": 603,
                    "title": "spanish",
                    "parent_id": 402
                }
            ]
        },
        "children": []
    }

]

API RequestPOST

http://localhost:8080/subjects

Payload

{  "title": "spanish",  "parent_id": 402}

API Response

{    "subject_id": 652,    "title": "spanish",    "parent_id": 402}

API RequestDELETE

http://localhost:8080/subjects/403

API Response

Subject deleted successfully

API RequestPUT

http://localhost:8080/subjects/302

Payload

{
  "title":"arabiccc ",
  "parent_id":null

    }

API Response

{
    "subject_id": 302,
    "title": "arabiccc ",
    "parent": null,
    "children": []
}

About

API d’une plateforme d’examens et de quiz avec spring boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors