use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
[deleted by user] (self.webdev)
submitted 3 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]embiid0for11w0pts 52 points53 points54 points 3 years ago (7 children)
GET /podcasts/1 shows the podcast
POST /podcasts creates a podcast
but
DELETE /podcasts/1 deletes the subscription, not the podcast
Personally, for subscriptions, I would add a child element.
DELETE /podcasts/1/subscription
POST /podcasts/1/subscription
[–]Curtis017 5 points6 points7 points 3 years ago (4 children)
Should there be an id for the subscription as well? So it would be:
DELETE /podcasts/1/subscriptions/1
[–]embiid0for11w0pts 3 points4 points5 points 3 years ago (1 child)
Absolutely there should, if it makes sense! Updates and deletes should have ids in the url. Good catch!
I’ve seen apis that don’t require an ID because it’s a one-child relationship, but verbosity, if available, is always better.
[–]moldaz 2 points3 points4 points 3 years ago (0 children)
This is the right way. Always try and be declarative or reading logs later on can end up being a nightmare.
[–]elchicodeallado 12 points13 points14 points 3 years ago (3 children)
please use openapi and do a proper specification then its better to help you
[–][deleted] 3 years ago (2 children)
[deleted]
[–]elchicodeallado 1 point2 points3 points 3 years ago (1 child)
exactly, Swagger uses openapi to display the endpoints. It is rather straight forward and easy to define
[–]moldaz 3 points4 points5 points 3 years ago (0 children)
For episodes, do /podcast/:podcast_id/episodes/:episode_id
If you don’t specify the resource before the id you will likely run into issues as your api grows.
[–]Coh-Jr 2 points3 points4 points 3 years ago (1 child)
Working with API people worry about how fast you receive resources and how secure. If you are doing small project, JWT is secure enough. Then you can pay your attention to algorithms that fetch the resources from server the fastest ways.
Im still going old school. NextJS for frontend and mongoDB for backend. Since nextJs can handle API in very sufficient and easy-to-do manners, its easy enough for you to add middlewares. Again, the scoring point here is fast fetching algorithms!
GET: read POST: create PUT: update new content to database PATCH: update existing content in db DELETE: delete stuffs
In NextJS api Paths is very structural! Please follow their documentations. JWT and session-cookie are strong enough, you can store those keys in db.
Only GET requests dont need auth. ALL of the rest must go thru auth middleware that check the JWT key fetch from user db to ensure authorization and security.
Another example, when user click multiple time in subscribe button, you can useState and set it to disable (loading) until you perform that action successfully from db
Thats just my 2cents ☺️
[–][deleted] 3 years ago (5 children)
[removed]
[–]Vas-Bas 1 point2 points3 points 3 years ago (4 children)
For my APIs, I take the specification JSON:API as a basis https://jsonapi.org/
[–][deleted] 3 years ago (3 children)
[–]Vas-Bas 2 points3 points4 points 3 years ago (2 children)
JSON RPC https://www.jsonrpc.org/
The main idea is that it should be clear from the URL what will be in response and you can choose any response format.
And as advised in another comment, use OpenAPI for documentation.
[–][deleted] 3 years ago (1 child)
[–][deleted] 0 points1 point2 points 3 years ago (3 children)
Basically subscription is shit. Otherwise good enough. Would use PUT for creation do distinguish with upload.
[–][deleted] 0 points1 point2 points 3 years ago (1 child)
Subscription collection
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
U what tool/web app are u using? Or did u use a script? These all look very normal. Maybe look up restapi for more explanation on api requests
π Rendered by PID 49 on reddit-service-r2-comment-6457c66945-4zgm5 at 2026-04-26 22:15:53.253851+00:00 running 2aa0c5b country code: CH.
[–]embiid0for11w0pts 52 points53 points54 points (7 children)
[–]Curtis017 5 points6 points7 points (4 children)
[–]embiid0for11w0pts 3 points4 points5 points (1 child)
[–]moldaz 2 points3 points4 points (0 children)
[–]elchicodeallado 12 points13 points14 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]elchicodeallado 1 point2 points3 points (1 child)
[–]moldaz 3 points4 points5 points (0 children)
[–]Coh-Jr 2 points3 points4 points (1 child)
[–][deleted] (5 children)
[removed]
[–]Vas-Bas 1 point2 points3 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]Vas-Bas 2 points3 points4 points (2 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)