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

enable/disable interface HTTP status code isn't consistent with the rest of the endpoints #128

Open
viniarck opened this issue Apr 24, 2023 · 0 comments
Labels
priority_low Low priority tech_debt Tech debt

Comments

@viniarck
Copy link
Member

switches, links are using HTTP status code 201 for enable/disable, but interfaces are using 200

POST v3/links/<link_id>/enable -> 201
POST v3/switches//enable -> 201
POST v3/interfaces/<interface_enable_id>/enable -> 200

201 is usually for new resource creation when it doesn't exist, I'd say all enable/disable should return 200 when succeeding.

@viniarck viniarck added priority_low Low priority tech_debt Tech debt labels Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority_low Low priority tech_debt Tech debt
Projects
None yet
Development

No branches or pull requests

1 participant