Manager API: Add app might returns a 404 if targeted category not found

This commit is contained in:
Soisik Froger 2020-06-26 10:03:16 +00:00
parent e558b30628
commit ad09bda8b7
2 changed files with 50 additions and 0 deletions

View File

@ -6368,6 +6368,54 @@ except ApiException as e:
</div>
</div>
<h3> Status: 404 - The specified resource was not found </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-addMenuApp-404-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-addMenuApp-404-schema">
<div id='responses-addMenuApp-404-schema-404' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "The specified resource was not found",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/Error"
}
}
}
};
var schema = schemaWrapper.content["application/json"].schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.components = {};
schemaWrapper.components.schemas = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-addMenuApp-404-schema-data').val(stringify(schema));
var result = $('#responses-addMenuApp-404-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-addMenuApp-404-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 409 - The specified object could not be created because its configuration key, client_id or entityID already exists </h3>
<ul class="nav nav-tabs nav-tabs-examples" >

View File

@ -813,6 +813,8 @@ paths:
$ref: '#/components/responses/Created'
400:
$ref: '#/components/responses/Error'
404:
$ref: '#/components/responses/NotFound'
409:
$ref: '#/components/responses/Conflict'