Project

General

Profile

Actions

Bug #3137

closed

API v2 - show error if nested object does not exist for nested route

Added by Joseph Magen over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

GET /api/environments/asjkf/puppetclasses currently returns that same as api/puppetclasses with no error that environment 'asjkf' doesn't exist

This is happens with before_filter :find_optional_nested_object since nested_obj can be nil.

Actions

Also available in: Atom PDF