
This commit implements the core Deckhand API framework. It does not implement any real API routes. The core framework is modeled after Drydock's [0]. This commit specifically: - implements the core API framework which uses falcon - implements errors.py for preliminary errors - implements base resource class from which other API resources will inherit to build out the API itself - implements base API router - implements entry-point for kicking off deckhand - updates base README.rst with instructions on - running and installing -- similar to Drydock's - implements dummy API resource for secrets, to be fleshed out further in a follow-up commit [0] https://github.com/att-comdev/drydock
22 lines
699 B
Python
22 lines
699 B
Python
# Copyright 2017 AT&T Intellectual Property. All other rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
|
|
class ApiError(Exception):
|
|
pass
|
|
|
|
|
|
class InvalidFormat(ApiError):
|
|
pass
|