Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/MyBranch.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added .vs/MyBranch/v16/.suo
Binary file not shown.
7 changes: 7 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\D:\\SCALER\\Project session backend\\MyBranch",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
131 changes: 131 additions & 0 deletions 01/TodoListApiDoc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Api Documentation for Todo list
## GET /tasks
[
{
TaskId : 1,
Title: "Exercise",
DueDate: 1659017827,
IsCompleted: false
},
{
TaskId : 2,
Title: "Prayer",
DueDate: 1659017930,
IsCompleted: false
}...
]

## GET /task/{taskid}
[
{
TaskId : 1,
Title: "Exercise",
DueDate: 1659017827,
IsCompleted: false
}
]

## GET /task/{taskid}/notes
[
{
TaskId : taskid,
NoteId: 1,
Title: "Note 1",
Body: "Please be on time for your task"
},
{
TaskId : taskid,
NoteId: 2,
Title: "Note 2",
Body: "Please finish task on time"
}...
]

## GET /task/{taskid}?notes=true
[
TaskId : taskid,
Title: "Exercise",
DueDate: 1659017827,
IsCompleted: false,
Notes:[
{
TaskId : taskid,
NoteId: 1,
Title: "Note 1",
Body: "Please be on time for your task"
},
{
TaskId : taskid,
NoteId: 2,
Title: "Note 2",
Body: "Please finish task on time"
}...
]
]

## POST /CreateTask
{
body:[
{
TaskId: <autogeneratedtaskid>,
Title: "Exercise",
DueDate: 1659017827,
IsCompleted: false,
Notes:[
{
TaskId : <autogeneratedtaskid>,
NoteId: <autogeneratednoteid>,
Title: "Note 1",
Body: "Please be on time for your task"
},
{
TaskId : <autogeneratedtaskid>,
NoteId: <autogeneratednoteid>,
Title: "Note 2",
Body: "Please finish task on time"
}...
]
}
]
}

## POST /AttachNote/{taskid}

{
TaskId : taskid,
NoteId: <autogeneratednoteid>,
Title: "Note 3",
Body: "Attaching note to existing task"
}

## UPDATE /UpdateTask/{taskid}
{
Title: "Exercise update",
DueDate: 1659017827,
IsCompleted: false
}

## UPDATE /FinishTask/{taskid}
{
IsCompleted: true
}

## UPDATE /UpdateNotes/{noteid}
{
Title: "Note 3 updated",
Body: "Attaching note to existing task"
}

## DELETE /Task/{taskid}
## DELETE /Note/{noteid}











37 changes: 37 additions & 0 deletions 03/BasicProject/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/
3 changes: 3 additions & 0 deletions 03/BasicProject/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Basic Spring Boot Appication

Links used to generate project: https://start.spring.io/
23 changes: 23 additions & 0 deletions 03/BasicProject/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
plugins {
id 'org.springframework.boot' version '2.7.2'
id 'io.spring.dependency-management' version '1.0.12.RELEASE'
id 'java'
}

group = 'com.scalerproject'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

tasks.named('test') {
useJUnitPlatform()
}
Binary file added 03/BasicProject/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions 03/BasicProject/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading