diff --git a/DB/DB.csproj b/DB/DB.csproj
index e9675af..8d90a0a 100644
--- a/DB/DB.csproj
+++ b/DB/DB.csproj
@@ -73,7 +73,6 @@
-
diff --git a/WebApp/packages.config b/WebApp/packages.config
index 426df07..b821dbc 100644
--- a/WebApp/packages.config
+++ b/WebApp/packages.config
@@ -31,6 +31,7 @@
+
diff --git a/appveyor.yaml b/appveyor.yaml
new file mode 100644
index 0000000..a74e37f
--- /dev/null
+++ b/appveyor.yaml
@@ -0,0 +1,18 @@
+configuration: Release
+
+# restore NuGet packages before running MSBuild
+before_build:
+ - nuget restore Ease-L.sln
+
+# package Web Application project for Web Deploy
+build:
+ verbosity: minimal
+ publish_wap: true
+
+cache:
+- packages -> **\packages.config
+
+deploy:
+- provider: Environment
+ name: appvey deploy
+ site_name: www.ease-l.xyz
\ No newline at end of file
diff --git a/travis.yaml b/swagger.yaml
similarity index 51%
rename from travis.yaml
rename to swagger.yaml
index 487c329..925dbbc 100644
--- a/travis.yaml
+++ b/swagger.yaml
@@ -2,8 +2,8 @@
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
- title: Uber API
- description: Move your app forward with the Uber API
+ title: Ease-L
+ description: Making project
version: "1.0.0"
# the domain of the service
host: api.uber.com
@@ -45,6 +45,12 @@ paths:
description: Comment
schema:
$ref: '#/definitions/CommentWithoutObjectId'
+ 400:
+ description: Bad request
+ schema:
+ type: string
+
+
/Comment/AddComment:
post:
@@ -66,8 +72,37 @@ paths:
description: Comment added successfully
schema:
type: string
- #items:
- #$ref: '#/definitions/Comment'
+
+
+ /Comment/UpdateById:
+ post:
+ summary: Posted
+ description: Updates comment by id
+ parameters:
+ - name: id
+ in: query
+ required: true
+ type: string
+ description: Comment id
+ - name: name
+ in: query
+ required: true
+ type: string
+ description: Comment name
+ - name: text
+ in: query
+ required: true
+ type: string
+ description: Comment text
+ responses:
+ 200:
+ description: Updated comment
+ schema:
+ $ref: '#/definitions/CommentWithoutObjectId'
+ 400:
+ description: Bad id
+ schema:
+ type: string
############
@@ -98,6 +133,10 @@ paths:
description: Image
schema:
$ref: '#/definitions/ImageWithoutObjectId'
+ 400:
+ description: Bad id
+ schema:
+ type: string
/Image/AddImage:
post:
@@ -127,22 +166,127 @@ paths:
summary: Posted
description: Adds comment to image
parameters:
- - name: scommentId
+ - name: name
in: query
required: true
type: string
- description: Comment id
+ description: Comment name
- name: simageId
required: true
in: query
type: string
description: Image id
+ - name: text
+ in: query
+ required: true
+ type: string
+ description: Comment text
responses:
200:
description: Comment added to image successfully
schema:
type: string
- #$ref: '#/definitions/Image'
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Image/DeleteCommentFromImage:
+ delete:
+ summary: Comment deleted from image
+ description: Deletes comment from image
+ parameters:
+ - name: idImage
+ in: query
+ required: true
+ type: string
+ description: Image id
+ - name: idComment
+ in: query
+ required: true
+ type: string
+ description: Comment id
+ responses:
+ 200:
+ description: Comment deleted from image successfully
+ schema:
+ type: string
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Image/GetCommentFromImage:
+ get:
+ summary: One comment
+ description: Gets comment by id
+ parameters:
+ - name: simageId
+ required: true
+ in: query
+ type: string
+ description: Image id
+ responses:
+ 200:
+ description: Comments
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/CommentWithoutObjectId'
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Image/UpdateById:
+ put:
+ summary: Updated image
+ description: Updates image by id
+ parameters:
+ - name: id
+ required: true
+ in: query
+ type: string
+ description: Image id
+ - name: name
+ required: true
+ in: query
+ type: string
+ description: Image name
+ - name: url
+ required: true
+ in: query
+ type: string
+ description: Image url
+ responses:
+ 200:
+ description: Comments
+ schema:
+ $ref: '#/definitions/ImageWithoutObjectId'
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Image/DownloadImage2:
+ post:
+ summary: Dowloaded
+ description: Dowloads image(byte[])
+ parameters:
+ - name: uploadImage
+ in: query
+ required: true
+ type: string
+ format: byte
+ description: Upload image
+ responses:
+ 200:
+ description: Image downloaded successfully
+ schema:
+ type: string
+
+
+
############
@@ -196,11 +340,11 @@ paths:
summary: Posted
description: Adds new project to root project
parameters:
- - name: sidNew
+ - name: name
in: query
required: true
type: string
- description: New project id
+ description: New project name
- name: sidRoot
in: query
required: true
@@ -211,18 +355,26 @@ paths:
description: Project added to root project successfully
schema:
type: string
- #$ref: '#/definitions/Project'
+ 400:
+ description: Bad id
+ schema:
+ type: string
/Project/AddImageToProject:
post:
summary: Posted
description: Adds image to project
parameters:
- - name: simageId
+ - name: url
in: query
required: true
type: string
- description: Image id
+ description: Image url
+ - name: name
+ required: true
+ in: query
+ type: string
+ description: Image name
- name: sprojectId
in: query
required: true
@@ -233,18 +385,26 @@ paths:
description: Image added to project successfully
schema:
type: string
- #$ref: '#/definitions/Project'
+ 400:
+ description: Bad id
+ schema:
+ type: string
/Project/AddCommentToProject:
post:
summary: Posted
description: Adds comment to project
parameters:
- - name: scommentId
+ - name: text
in: query
required: true
type: string
- description: Comment id
+ description: Comment text
+ - name: name
+ required: true
+ in: query
+ type: string
+ description: Comment name
- name: sprojectId
in: query
required: true
@@ -255,7 +415,172 @@ paths:
description: Comment added to project successfully
schema:
type: string
- #$ref: '#/definitions/Project'
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Project/DeleteById:
+ delete:
+ summary: Project deleted
+ description: Deletes project
+ parameters:
+ - name: id
+ in: query
+ required: true
+ type: string
+ description: Project id
+ responses:
+ 200:
+ description: Project deleted successfully
+ schema:
+ type: string
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Project/DeleteCommentFromProject:
+ delete:
+ summary: Comment deleted from project
+ description: Deletes comment from project
+ parameters:
+ - name: projectId
+ in: query
+ required: true
+ type: string
+ description: Project id
+ - name: commentId
+ in: query
+ required: true
+ type: string
+ description: Comment id
+ responses:
+ 200:
+ description: Comment deleted from project successfully
+ schema:
+ type: string
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Project/DeleteImageFromProject:
+ delete:
+ summary: Image deleted from project
+ description: Deletes image from project
+ parameters:
+ - name: projectId
+ in: query
+ required: true
+ type: string
+ description: Project id
+ - name: imageId
+ in: query
+ required: true
+ type: string
+ description: Image id
+ responses:
+ 200:
+ description: Image deleted from project successfully
+ schema:
+ type: string
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Project/GetCommentsFromProject:
+ get:
+ summary: All comments from project
+ description: Gets all comments from project
+ parameters:
+ - name: sidRoot
+ in: query
+ required: true
+ type: string
+ description: Project id
+ responses:
+ 200:
+ description: All comments from project
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/CommentWithoutObjectId'
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Project/GetImagesFromProject:
+ get:
+ summary: All images from project
+ description: Gets all images from project
+ parameters:
+ - name: sidRoot
+ in: query
+ required: true
+ type: string
+ description: Project id
+ responses:
+ 200:
+ description: All images from project
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/ImageWithoutObjectId'
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Project/GetProjectsFromProject:
+ get:
+ summary: All projects from project
+ description: Gets all projects from project
+ parameters:
+ - name: sidRoot
+ in: query
+ required: true
+ type: string
+ description: Project id
+ responses:
+ 200:
+ description: All projects from project
+ schema:
+ type: array
+ items:
+ $ref: '#/definitions/ProjectWithoutObjectId'
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
+ /Project/UpdateById:
+ put:
+ summary: Updated project
+ description: Updates project by id
+ parameters:
+ - name: id
+ required: true
+ in: query
+ type: string
+ description: Project id
+ - name: name
+ required: true
+ in: query
+ type: string
+ description: Project name
+ responses:
+ 200:
+ description: Projects
+ schema:
+ $ref: '#/definitions/ProjectWithoutObjectId'
+ 400:
+ description: Bad id
+ schema:
+ type: string
+
############