Skip to content

Joshua152/Bug-Tracker-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Objects

Project:

{
    projectID: int,
    name: string,
    createdOn: string (RFC3339 with numeric time zone value; 'Z' can only be on its own at the end),
    lastUpdated: string (RFC3339)
}

Bug:

{
    bugID: int,
    title: string,
    description: string,
    timeAmt: double,
    complexity: double,
    projectID: int,
    createdOn: string (RFC3339),
    lastUpdated: string (RFC3339)
}

Endpoints:

/projects

GET: Gets all projects

    Result -  
    [
        {
            Project
        },
        ...
    ]

POST: Adds a project into the database

    Data - 
    {
        Project
    }

/projects/{id}

GET: Gets the project at the given {id}

    Result -
    {
        Project
    }

PUT: Updates the project at the given {id} with the new data

    Data - 
    {
        Project
    }

DELETE: Deletes the project with the given {id}

/projects/{id}/bugs

GET: Gets the bugs from the project with the given {id}

    Result - 
    [
        {
            Bug
        },
        ...
    ]

/bugs

GET: Gets all bugs

    Result - 
    [
        {
            Bug
        },
        ...
    ]

POST: Adds a new bug to the databse

    Data -
    {
        Bug
    }

    OR for batch insert

    [
        {
            Bug
        },
        ...
    ]

/bugs/{id}

GET: Gets bug with the given {id}

    Result - 
    {
        Bug
    }

PUT: Replaces the bug with the given {id} with the data passed in

    Data -
    {
        Bug
    }

DELETE: Deletes the bug with the given {id}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages