Skip to content

Commit

Permalink
docs: post rest controller postman
Browse files Browse the repository at this point in the history
  • Loading branch information
gutche committed Mar 27, 2023
1 parent 3b757be commit 46595e7
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 113 deletions.
183 changes: 72 additions & 111 deletions AList.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@
"url": {
"raw": "https://localhost:8443/api/auth/sign-in",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"auth",
"sign-in"
]
"path": ["api", "auth", "sign-in"]
}
},
"response": []
Expand All @@ -47,15 +41,9 @@
"url": {
"raw": "https://localhost:8443/api/auth/sign-out",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"auth",
"sign-out"
]
"path": ["api", "auth", "sign-out"]
}
},
"response": []
Expand All @@ -73,15 +61,9 @@
"url": {
"raw": "https://localhost:8443/api/users/2",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"users",
"2"
]
"path": ["api", "users", "2"]
}
},
"response": []
Expand All @@ -94,15 +76,9 @@
"url": {
"raw": "https://localhost:8443/api/users/Peepo",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"users",
"Peepo"
]
"path": ["api", "users", "Peepo"]
}
},
"response": []
Expand All @@ -124,15 +100,9 @@
"url": {
"raw": "https://localhost:8443/api/users/",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"users",
""
]
"path": ["api", "users", ""]
}
},
"response": []
Expand All @@ -154,16 +124,9 @@
"url": {
"raw": "https://localhost:8443/api/users/Peepo/follows",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"users",
"Peepo",
"follows"
]
"path": ["api", "users", "Peepo", "follows"]
}
},
"response": []
Expand All @@ -181,16 +144,9 @@
"url": {
"raw": "https://localhost:8443/api/comments/user/1",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"comments",
"user",
"1"
]
"path": ["api", "comments", "user", "1"]
}
},
"response": []
Expand All @@ -203,16 +159,9 @@
"url": {
"raw": "https://localhost:8443/api/comments/post/42",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"comments",
"post",
"42"
]
"path": ["api", "comments", "post", "42"]
}
},
"response": []
Expand All @@ -225,16 +174,9 @@
"url": {
"raw": "https://localhost:8443/api/comments/40/44",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"comments",
"40",
"44"
]
"path": ["api", "comments", "40", "44"]
}
},
"response": []
Expand All @@ -256,15 +198,9 @@
"url": {
"raw": "https://localhost:8443/api/comments/40",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"comments",
"40"
]
"path": ["api", "comments", "40"]
}
},
"response": []
Expand All @@ -282,16 +218,9 @@
"url": {
"raw": "https://localhost:8443/api/posts/40/upvotes",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"posts",
"40",
"upvotes"
]
"path": ["api", "posts", "40", "upvotes"]
}
},
"response": []
Expand All @@ -304,16 +233,54 @@
"url": {
"raw": "https://localhost:8443/api/posts/40/downvotes",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"posts",
"40",
"downvotes"
]
"path": ["api", "posts", "40", "downvotes"]
}
},
"response": []
},
{
"name": "createPost",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "https://localhost:8443/api/posts/",
"protocol": "https",
"host": ["localhost"],
"port": "8443",
"path": ["api", "posts", ""]
}
},
"response": []
},
{
"name": "getPost",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://localhost:8443/api/posts/42",
"protocol": "https",
"host": ["localhost"],
"port": "8443",
"path": ["api", "posts", "42"]
}
},
"response": []
},
{
"name": "deletePost",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "https://localhost:8443/api/posts/42",
"protocol": "https",
"host": ["localhost"],
"port": "8443",
"path": ["api", "posts", "42"]
}
},
"response": []
Expand Down Expand Up @@ -343,15 +310,9 @@
"url": {
"raw": "https://localhost:8443/api/auth/sign-in",
"protocol": "https",
"host": [
"localhost"
],
"host": ["localhost"],
"port": "8443",
"path": [
"api",
"auth",
"sign-in"
]
"path": ["api", "auth", "sign-in"]
}
},
"response": []
Expand All @@ -375,4 +336,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import net.daw.alist.models.Comment;
import net.daw.alist.models.Post;
import net.daw.alist.models.User;
import net.daw.alist.services.PostService;
Expand Down
1 change: 0 additions & 1 deletion back/src/main/java/net/daw/alist/models/Post.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import net.bytebuddy.dynamic.DynamicType;

import java.util.*;

Expand Down

0 comments on commit 46595e7

Please sign in to comment.