Questions tagged [url-design]

Discussion of the appropriate design of URLs (e.g., for readability and hackability).

Related tags

69 questions
3
votes
1 answer

URL Structure best practice / standard

I'm building a site that has items, with each item having a page, for example: website.com/book/123 website.com/film/456 website.com/game/789 Each item can have multiple sub (and sub-sub, sub-sub-sub) pages, for example a book could have a blurb, a…
sam
  • 5,459
  • 6
  • 32
  • 53
3
votes
4 answers

"+" or "-" as separator in URL?

Most websites use - (like Stack Overflow) but most PHP frameworks generate + encoded URLs. So, what is the best for SEO? Use + or - as separators?
Boris Guéry
  • 47,316
  • 8
  • 52
  • 87
3
votes
1 answer

asp.net mvc routing with optional starting parameter

I'm starting a port of an existing ASP.NET Web Forms CMS to ASP.NET MVC and want to get the routing right from the start. Note: it isn't important to have the exact same URL structure. I think this answer is close to what I'm looking for but would…
Andrew Grothe
  • 2,562
  • 1
  • 32
  • 48
3
votes
1 answer

The purpose of using a tick(✓) in a url

When I am searching a gem in rubygems, I notice that the url is: https://rubygems.org/search?utf8=✓&query=jekyll-multiple-languages I want to know what is the purpose of using ✓ instead of any other characters. Any explanation is welcome. :)
srain
  • 8,944
  • 6
  • 30
  • 42
3
votes
2 answers

RESTful Question/Answer design?

This is a toy project I'm working on at the moment. My app contains questions with multiple choice answers. The question url is in the following format, with GET & POST mapping to different actions on the questions controller. GET: …
Kirschstein
  • 14,570
  • 14
  • 61
  • 79
3
votes
1 answer

How do I define an edit page within a REST API?

In a Play app I'm designing, these are some of my routes POST /visits controllers.Visit.create GET /visits controllers.Visit.visits GET /visits/:id controllers.Visit.visit(id:…
sdanzig
  • 4,510
  • 1
  • 23
  • 27
2
votes
3 answers

REST API naming convention: referencing unique resources with nested paths

Given there is a one to many relationship between users and comments, and all ids are provided to be unique; what are the considerations between naming the operation as: DELETE /users/{user_uuid}/comments/{comment_uuid} or DELETE…
Deniz Ozger
  • 2,565
  • 23
  • 27
2
votes
0 answers

The proper way to represent ranges in semantic URLs

Working on a little side project, I have now the opportunity to design my very own API. Event if it is not a business endeavor, it's the occasion for me to learn more about REST, Resources, Collections and URIs. My service, records data points…
ITChap
  • 4,057
  • 1
  • 21
  • 46
2
votes
0 answers

Best folder structure for assets/images of a social networking web and mobile application

I wondering the rationale behind the big social networks folder structures for images they hold. I'm creating an API for a smaller social app with endpoints similar to the…
CaptRisky
  • 751
  • 4
  • 13
  • 25
2
votes
1 answer

What is key factor for deciding routes vs parameters

I can't see a basis to decide between two factorings of routes. My question is what factor is key to deciding between: more routes - fewer parameters fewer routes - more parameters - logic in handler The two samples below are my actual case, but…
jdr5ca
  • 2,809
  • 14
  • 25
2
votes
2 answers

REST hypermedia/links to collections

Part of REST best practice is to make use of links in the responses to allow clients to navigate from one entity to another. For example if I had a customer object type which has child account. If I was to request a customer using /customers/1 then…
Mike Q
  • 22,839
  • 20
  • 87
  • 129
1
vote
1 answer

Proper REST API design for like dislike and unvote

I have a system where logged in users can vote like or dislike on posts. If they try to like a post which has already been liked, they ll remove its vote. Same applies for dislike. As a REST newbie I am trying to come up with a url scheme for this…
PirateApp
  • 5,433
  • 4
  • 57
  • 90
1
vote
1 answer

What is the best practice in RESTful URL?

I want to design a RESTful URL to select designers that have a specific category. This is my domain relationship: designer <-> product <-> category I thought of two ways: First, using only the URI path: /categories/{id}/products/designers Second,…
choihyunjin
  • 51
  • 1
  • 3
1
vote
3 answers

Hybris URL structure

We are using the Hybris platform, and our products URL are like below. I am new to Hybris platform but I know about URL structure, and I think something is going wrong here. I've checked other Hybris sites and other Hybris sites have short and clean…
1
vote
1 answer

How to design a restful url for login?

I did a research on this topic, but I still cannot find any answer. I'm trying to use oauth2 and jwt to implement a web login function, then I need a rest style api between backend and frontend. 10 years ago, people just use ..../login to deal with…
Lang
  • 943
  • 13
  • 33