Skip to content
Snippets Groups Projects
Commit 8e687e30 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Change status API endpoint to statuses

All endpoints are plural
parent a87309e5
No related branches found
No related tags found
No related merge requests found
......@@ -174,13 +174,13 @@ def create_locations():
return create_generic_model(models.Location)
@bp.route('/status')
@bp.route('/statuses')
@jwt_required
def get_status():
return get_generic_model(models.Status)
@bp.route('/status', methods=['POST'])
@bp.route('/statuses', methods=['POST'])
@jwt_required
@jwt_groups_accepted('admin', 'create')
def create_status():
......
......@@ -21,7 +21,7 @@ ENDPOINT_MODEL = {
'inventory/manufacturers': models.Manufacturer,
'inventory/models': models.Model,
'inventory/locations': models.Location,
'inventory/status': models.Status,
'inventory/statuses': models.Status,
'inventory/items': models.Item,
'network/networks': models.Network,
'network/interfaces': models.Interface,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment