Skip to content

Conversation

@Samze
Copy link
Contributor

@Samze Samze commented Aug 21, 2025

See https://github.com/cloudfoundry/cloud_controller_ng/blob/main/app/controllers/v3/space_manifests_controller.rb#L59C21-L59C28

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

  • An explanation of the use cases your change solves

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@stephanme
Copy link
Member

I think POST /v3/spaces/:guid/manifest_diff should return 200 and not 201 as there is no resource created.

See also:

@Samze
Copy link
Contributor Author

Samze commented Aug 22, 2025

While I agree, I don't know if changing this would break any clients that are relying on the current status code.

@stephanme
Copy link
Member

POST /v3/spaces/:guid/manifest_diff is still marked as experimental.

If it doesn't break CLI v8, I would risk changing 201 into 200.

@Gerg
Copy link
Member

Gerg commented Aug 26, 2025

From a certain perspective, the "manifest diff" resource is created. It's just not persisted anywhere. REST can be pretty liberal about what counts as a "resource".

The styleguide, divides POSTs into "Create Resource" case vs the "Trigger Action" case. Actions typically have "action" in the path and affect the runtime.

In the end, I don't care that much about the status code. 200 vs 201 probably doesn't make a material difference.

@sethboyles
Copy link
Member

Regardless if we change this in the future, I think it makes sense to update the current docs.

@philippthun philippthun merged commit 2f867f0 into main Sep 15, 2025
6 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Sep 15, 2025
Changes in cloud_controller_ng:

- Update manifest _create_diff.md
    PR: cloudfoundry/cloud_controller_ng#4530
    Author: Sam Gunaratne <[email protected]>
@moleske moleske deleted the Samze-patch-1 branch September 15, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants