-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into release-1.2
Signed-off-by: Wei Tie <wtie@cisco.com>
- Loading branch information
Showing
1,421 changed files
with
255,772 additions
and
332,068 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# build and install the code | ||
bash generate.sh | ||
go install ./ ./client/ | ||
|
||
# update the docs based on the latest code | ||
|
||
# NOTE: disabled on 2017/06/27 due to a breakage in the RAML Dockerfile. it's complaining | ||
# about a xhr2 package being missing or something. since we're not even using the | ||
# generated documentation, disabling it is the best option for now. | ||
|
||
# pushd spec | ||
# make docs | ||
# popd |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM node:alpine | ||
|
||
RUN npm install -g raml2html | ||
|
||
RUN mkdir /contiv | ||
|
||
WORKDIR /contiv | ||
|
||
ENTRYPOINT ["raml2html"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM ruby:2.4.0-slim | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get -y install build-essential && gem install nokogiri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
all: docs | ||
|
||
docs: | ||
@bash ./build.sh | ||
|
||
.PHONY: docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
#%RAML 1.0 | ||
title: Contiv | ||
description: Contiv API Specification | ||
version: v1 | ||
baseUri: | ||
value: https://{serverfqdn}:10000/api/{version} | ||
(rediractable): true | ||
baseUriParameters: | ||
serverfqdn: | ||
type: string | ||
protocols: [ HTTPS ] | ||
mediaType: [ application/json ] | ||
|
||
resourceTypes: | ||
collection: !include auth_proxy/schemas/collection.raml | ||
non-upd-collection-item: !include auth_proxy/schemas/non-upd-collection-item.raml | ||
collection-item: !include auth_proxy/schemas/collection-item.raml | ||
ro-collection-item: !include auth_proxy/schemas/ro-collection-item.raml | ||
|
||
annotationTypes: | ||
info: | ||
properties: | ||
license: | ||
type: string | ||
enum: [ "Apache 2.0" ] | ||
allowedTargets: API | ||
rediractable: boolean | ||
|
||
securitySchemes: | ||
custom_scheme: !include auth_proxy/schemas/custom-scheme.raml | ||
|
||
# Resource templates | ||
uses: | ||
auth_proxy: auth_proxy/libraries/auth_proxy.raml | ||
|
||
securedBy: custom_scheme | ||
|
||
# auth_proxy endpoints | ||
/auth_proxy: | ||
displayName: Auth API | ||
description: Authentication/Authorization related API | ||
|
||
/health: | ||
get: | ||
description: Returns the health status of Contiv API server and its netmaster | ||
securedBy: [ null ] | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
type: auth_proxy.health | ||
|
||
/login: | ||
post: | ||
description: Login to Contiv API server | ||
securedBy: [ null ] | ||
body: | ||
application/json: | ||
type: auth_proxy.login | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
type: auth_proxy.login_response | ||
400: | ||
401: | ||
|
||
/version: | ||
get: | ||
description: Returns the Contiv API server version | ||
securedBy: [ null ] | ||
responses: | ||
200: | ||
body: | ||
application/json: | | ||
{ "version": "1.0.0" } | ||
/authorizations: | ||
type: {collection: {provider: auth_proxy}} | ||
displayName: Authorizations | ||
|
||
/{authzUUID}: | ||
type: {non-upd-collection-item: {provider: auth_proxy}} | ||
displayName: Authorization | ||
|
||
/local_users: | ||
type: {collection: {provider: auth_proxy}} | ||
displayName: Local Users | ||
|
||
/{username}: | ||
type: {collection-item: {provider: auth_proxy}} | ||
displayName: Local User | ||
patch: | ||
|
||
/ldap_configuration: | ||
type: {collection-item: {provider: auth_proxy}} | ||
displayName: LDAP Configuration | ||
put: | ||
patch: |
Oops, something went wrong.