Web API of kNODEledge (0.1.0)

Download OpenAPI specification:

App to Create Graphically-Summarized Notes in Three Steps

Projects

Get list of projects

query Parameters
userId
required
string
Example: userId=auth0|65a3d656ca600978b0f9501b

User ID

Responses

Response samples

Content type
application/json
{
  • "projects": [
    ]
}

Find project

query Parameters
userId
required
string
Example: userId=auth0|65a3d656ca600978b0f9501b

User ID

projectId
required
string
Example: projectId=123e4567-e89b-12d3-a456-426614174000

Auto-generated project ID

Responses

Response samples

Content type
application/json
{
  • "project": {
    }
}

Create new project

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (ProjectWithoutAutofield)

Project object without auto-generated fields

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    }
}

Response samples

Content type
application/json
{
  • "project": {
    }
}

Update project

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (Project)

Project object

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    }
}

Response samples

Content type
application/json
{
  • "project": {
    }
}

Delete project

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (ProjectOnlyId)

Project object with only ID

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    }
}

Response samples

Content type
application/json
{
  • "message": "unexpected EOF",
  • "user": {
    },
  • "project": {
    }
}

Chapters

Get list of chapters for a project

query Parameters
userId
required
string
Example: userId=auth0|65a3d656ca600978b0f9501b

User ID

projectId
required
string
Example: projectId=123e4567-e89b-12d3-a456-426614174000

Auto-generated project ID

Responses

Response samples

Content type
application/json
{
  • "chapters": [
    ]
}

Create new Chapter

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (ProjectOnlyId)

Project object with only ID

required
object (ChapterWithoutAutofield)

Chapter object without auto-generated fields

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    },
  • "chapter": {
    }
}

Response samples

Content type
application/json
{
  • "chapter": {
    }
}

Update chapter

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (ProjectOnlyId)

Project object with only ID

required
object (Chapter)

Chapter object

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    },
  • "chapter": {
    }
}

Response samples

Content type
application/json
{
  • "chapter": {
    }
}

Delete chapter

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (ProjectOnlyId)

Project object with only ID

required
object (ChapterOnlyId)

Chapter object with only ID

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    },
  • "chapter": {
    }
}

Response samples

Content type
application/json
{
  • "message": "unexpected EOF",
  • "user": {
    },
  • "project": {
    },
  • "chapter": {
    }
}

Papers

Find paper

query Parameters
userId
required
string
Example: userId=auth0|65a3d656ca600978b0f9501b

User ID

projectId
required
string
Example: projectId=123e4567-e89b-12d3-a456-426614174000

Auto-generated project ID

chapterId
required
string
Example: chapterId=123e4567-e89b-12d3-a456-426614174000

Auto-generated chapter ID

Responses

Response samples

Content type
application/json
{
  • "paper": {
    }
}

Update paper

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (ProjectOnlyId)

Project object with only ID

required
object (Paper)

Paper object

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    },
  • "paper": {
    }
}

Response samples

Content type
application/json
{
  • "paper": {
    }
}

Graphs

Find graph

query Parameters
userId
required
string
Example: userId=auth0|65a3d656ca600978b0f9501b

User ID

projectId
required
string
Example: projectId=123e4567-e89b-12d3-a456-426614174000

Auto-generated project ID

chapterId
required
string
Example: chapterId=123e4567-e89b-12d3-a456-426614174000

Auto-generated chapter ID

sectionId
required
string
Example: sectionId=123e4567-e89b-12d3-a456-426614174000

Auto-generated section ID

Responses

Response samples

Content type
application/json
{
  • "graph": {
    }
}

Update graph

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (ProjectOnlyId)

Project object with only ID

required
object (ChapterOnlyId)

Chapter object with only ID

required
object (GraphContent)

Graph object with only content fields

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    },
  • "chapter": {
    },
  • "graph": {
    }
}

Response samples

Content type
application/json
{
  • "graph": {
    }
}

Delete graph

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (ProjectOnlyId)

Project object with only ID

required
object (ChapterOnlyId)

Chapter object with only ID

required
object (SectionOnlyId)

Section object with only ID

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    },
  • "chapter": {
    },
  • "section": {
    }
}

Response samples

Content type
application/json
{
  • "message": "unexpected EOF",
  • "user": {
    },
  • "project": {
    },
  • "chapter": {
    },
  • "section": {
    }
}

Sectionalize into graphs

Request Body schema: application/json
required
object (UserOnlyId)

User object with only ID

required
object (ProjectOnlyId)

Project object with only ID

required
object (ChapterOnlyId)

Chapter object with only ID

required
Array of objects (SectionWithoutAutofield) <= 20 items

Responses

Request samples

Content type
application/json
{
  • "user": {
    },
  • "project": {
    },
  • "chapter": {
    },
  • "sections": [
    ]
}

Response samples

Content type
application/json
{
  • "graphs": [
    ]
}