Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API design: Get unlock PIN immediately after locking macOS host #19671

Closed
wants to merge 3 commits into from

Conversation

noahtalerman
Copy link
Member

@noahtalerman noahtalerman commented Jun 11, 2024

UPDATE: Here's the new PR:

Proposed API changes for the "Get unlock PIN immediately after locking macOS host" story (#19545)

@noahtalerman
Copy link
Member Author

Hey @rachaelshaw do you remember why we decided to include the host_id in the response for the unlock endpoint? https://fleetdm.com/docs/rest-api/rest-api#default-response-macos-hosts

I omitted host_id in the lock response because I don't think we need it. But maybe we should add it for consistency?

Also, I updated the status code from 204 to 200. Breaking change?

@rachaelshaw
Copy link
Member

Hey @rachaelshaw do you remember why we decided to include the host_id in the response for the unlock endpoint? https://fleetdm.com/docs/rest-api/rest-api#default-response-macos-hosts

@noahtalerman I don't remember why we included it, and can't find any conversation about it in the original PR. Doesn't seem necessary. I'm feeling torn between being consistent and simplifying the response; probably makes sense to simplify though.

Also, I updated the status code from 204 to 200. Breaking change?

Shouldn't be since it's still a 2xx status code

@rachaelshaw rachaelshaw marked this pull request as draft June 11, 2024 22:09
@rachaelshaw
Copy link
Member

@noahtalerman converted to draft PR since this isn't implemented yet

rachaelshaw
rachaelshaw previously approved these changes Jun 11, 2024
@noahtalerman noahtalerman changed the title Update API docs API design: Get unlock PIN immediately after locking macOS host Jun 12, 2024
@noahtalerman
Copy link
Member Author

Closing this draft PR and opening a new one so we don't affect the PR open time KPI.

@rachaelshaw rachaelshaw deleted the api-design-19545 branch July 1, 2024 18:45
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.

None yet

3 participants