Alex Chan
Alex Chan

Reputation: 1032

In the two URI design patterns below, which is more RESTful?

In the two URI design patterns below, which is more RESTful?
1) project/123/engineer/somebody/abilities
2) abilities?engineer=somebody&project=123

Upvotes: 0

Views: 97

Answers (1)

ioseb
ioseb

Reputation: 16949

Difference between these two is that #1 is a resource identifier and #2 is a query

Both are RESTful, though choice depends on purpose.

Upvotes: 2

Related Questions