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

Default Nautobot API Version #2799

Closed
12 tasks
itdependsnetworks opened this issue Nov 10, 2022 · 2 comments · Fixed by #3810
Closed
12 tasks

Default Nautobot API Version #2799

itdependsnetworks opened this issue Nov 10, 2022 · 2 comments · Fixed by #3810
Assignees
Labels
type: feature Introduction of new or enhanced functionality to the application
Milestone

Comments

@itdependsnetworks
Copy link
Contributor

itdependsnetworks commented Nov 10, 2022

As ...

Austin - Network Automation Engineer

I want ...

Use the latest features that are offered by the API

So that ...

  • I may get maximum benefit from the latest features.
  • Know when there are small breaking changes vs only when there are major breaking changes

I know this is done when...

Without setting a header, I get the latest API functionality given I am using the latest version of code.

Optional - Feature groups this request pertains to.

  • Automation
  • Circuits
  • DCIM
  • IPAM
  • Misc (including Data Sources)
  • Organization
  • Plugins (and other Extensibility)
  • Security (Secrets, etc)
  • Image Management
  • UI/UX
  • Documentation
  • Other (not directly a platform feature)

Database Changes

N/A

External Dependencies

No response

TODO

  • Verify DRF's default behavior when DEFAULT_VERSION is None, expecting it chooses the latest
  • Remove DEFAULT_VERSION from settings.py
  • Make it easier via config and documentation to override "default to latest" behavior
@itdependsnetworks itdependsnetworks added the type: feature Introduction of new or enhanced functionality to the application label Nov 10, 2022
@bryanculver bryanculver added this to the v2.0.0 milestone Nov 15, 2022
@bryanculver
Copy link
Member

Allowing a "magic" setting of latest as well as a specific version to be provided here: https://github.com/nautobot/nautobot/blob/develop/nautobot/core/settings.py#L195 should suffice. We should by default still fall back to the oldest minor version if not provided.

@glennmatthews
Copy link
Contributor

Implemented for 2.0 by #3810.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new or enhanced functionality to the application
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants