From 6ead10c12b05313043c7bd353cf9992c9f22d6fa Mon Sep 17 00:00:00 2001 From: janithRS Date: Mon, 11 May 2020 11:12:55 +0530 Subject: [PATCH 1/3] Add Student and Institute Tags --- swagger.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swagger.yml b/swagger.yml index f94566b..7e39ff4 100644 --- a/swagger.yml +++ b/swagger.yml @@ -8,7 +8,11 @@ info: basePath: "/v2" schemes: - "https" - +tags: + - name: "Student" + description: "Information about Students" + - name: "Institute" + description: "Information about Institutions" paths: /student/{sid}: get: From f72fe5e871b1d3f521a6546ad0d62bfcebcb8cb9 Mon Sep 17 00:00:00 2001 From: janithRS Date: Mon, 11 May 2020 11:14:39 +0530 Subject: [PATCH 2/3] Add Institute getInstituteById EP --- swagger.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/swagger.yml b/swagger.yml index 7e39ff4..503fd0c 100644 --- a/swagger.yml +++ b/swagger.yml @@ -38,6 +38,32 @@ paths: description: "Invalid ID supplied" "404": description: "Student not found" + /institute/{instituteId}: + get: + tags: + - "Institute" + summary: "Find institute by ID" + description: "Returns a single institute" + produces: + - "application/xml" + - "application/json" + # operationID: "getInstitutionById" + parameters: + - name: "instituteId" + in: "path" + description: "ID of the institution to return" + required: true + type: "integer" + format: "int64" + responses: + "200": + description: "successful operation" + schema: + $ref: '#/definitions/Institute' + "400": + description: "Invalid ID supplied" + "404": + description: "Institute not found" definitions: Student: From e04afa21e83f5c23238e3b9b625cffbff378a811 Mon Sep 17 00:00:00 2001 From: janithRS Date: Mon, 11 May 2020 11:16:25 +0530 Subject: [PATCH 3/3] Add getStudentById EP to Student Tag --- swagger.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swagger.yml b/swagger.yml index 503fd0c..c212673 100644 --- a/swagger.yml +++ b/swagger.yml @@ -16,6 +16,8 @@ tags: paths: /student/{sid}: get: + tags: + - "Student" summary: "Find student by ID" description: "Returns a single student" operationId: "getStudentById"