Skip to content

Commit

Permalink
Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
amiparadis250 committed Feb 29, 2024
1 parent 0ef95ba commit b353829
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"basePath": "/api",
"schemes": ["http"],
"paths": {
"/users/register": {
"/api/users/register": {
"post": {
"summary": "Create an account",
"tags": ["Authentication"],
Expand Down Expand Up @@ -121,7 +121,7 @@
}
}
},
"/users/login": {
"/api/users/login": {
"post": {
"summary": "User Login",
"tags": ["Authentication"],
Expand Down Expand Up @@ -163,7 +163,7 @@
}
}
},
"/users": {
"/api/users": {
"get": {
"summary": "Get all users for the admin panel",
"tags": ["Users", "Authentication"],
Expand All @@ -178,7 +178,7 @@
}
}
},
"/users/profile": {
"/api/users/profile": {
"get": {
"summary": "Get a single user for the admin panel",
"tags": ["Users", "Authentication"],
Expand All @@ -196,7 +196,7 @@
}
}
},
"/users/profile/{id}": {
"/api/users/profile/{id}": {
"delete": {
"summary": "Delete a certain user by Admin",
"tags": ["Users"],
Expand All @@ -222,7 +222,7 @@
}
}
},
"/blogs": {
"/api/blogs": {
"post": {
"summary": "Create a blog with valid details",
"tags": ["Blogs"],
Expand Down Expand Up @@ -329,7 +329,7 @@
}
}
},
"/blogs/{id}": {
"/api/blogs/{id}": {
"get": {
"summary": "Read a single blog",
"tags": ["Blogs"],
Expand Down Expand Up @@ -550,7 +550,7 @@
}
}
},
"/blogs/{id}/comments": {
"/api/blogs/{id}/comments": {
"post": {
"summary": "Add a comment to a blog",
"tags": ["Comments"],
Expand Down Expand Up @@ -733,7 +733,7 @@
}
},

"/blogs/{id}/likes": {
"/api/blogs/{id}/likes": {
"post": {
"summary": "Add a like to a blog",
"tags": ["Likes"],
Expand All @@ -755,7 +755,7 @@
}
}
},
"/blogs/{id}/dislike": {
"/api/blogs/{id}/dislike": {
"post": {
"summary": "Remove like from a blog",
"tags": ["Likes"],
Expand All @@ -777,7 +777,7 @@
}
}
},
"/blogs/{id}/views": {
"/api/blogs/{id}/views": {
"post": {
"summary": "Add views to a blog",
"tags": ["Likes"],
Expand Down

0 comments on commit b353829

Please sign in to comment.