Project

General

Profile

Task #1660

Story #1329: ^^^^ Items To Discuss ^^^^

Refactor REST calls so that mandatory args are part of the URL and optional args are key/value pairs

Added by Roger Dahl almost 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-06-28
Due date:
% Done:

0%

Milestone:
Product Version:
*
Story Points:
Sprint:

Description

Consider following a system for our REST API where each mandatory argument is part of the URL and each optional argument is a key/value pair.

Example:

GET /isAuthorized/{pid}?action={action}

In this call, both PID and action are mandatory. So this call could be refactored as:

GET /isAuthorized/{pid}/{action}

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)