GithubHelp home page GithubHelp logo

rht-labs / api-design Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 5.0 209 KB

NO LONGER ACTIVE - Home of our Swagger / OpenAPI Specifications, System Designs and Documentation

License: Apache License 2.0

Shell 53.66% JavaScript 46.34%

api-design's People

Contributors

mcanoy avatar mdanter avatar mtakane avatar oybed avatar sherl0cks avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-design's Issues

Support Users and groups at the team level - for IdM

We are currently trying to implement the automation of users into the IdM. The api spec currently has a list of users at the engagement level called team. However, this does not support the idea that users can belong to different groups on the team.

Current:

  "team":  [
      { "user_name": "kmcanoy" }, 
      { "user_name": "obedin" }, 
      { "user_name": "jholmes" } 
    ]

Instead we would like to add the groups as well and have the users be attached to the groups that they belong to

  "team": {
    "users" : [
      { "user_name": "kmcanoy" }, 
      { "user_name": "obedin" }, 
      { "user_name": "jholmes" } 
    ],
    "groups": [
      { 
        "name": "admin",
        "members": [
          { "user_name": "kmcanoy" }, 
          { "user_name": "obedin" }, 
          { "user_name": "jholmes" }
        ]
      },
      {
        "name": "devops",
        "members": [
          { "user_name": "jholmes" }
        ]
      },
      {
        "name": "developer",
        "users": [
          { "user_name": "kmcanoy" }
        ]
      }
    ]
  }
}

Requires new team object with user array and group array. Modified group object with user array

This won't effect the group_to_role mapping

Support Multiple containers in A Pod

The model is built around single container pods, and thus all the down stream automation is as well. This is a common scenario, so likely not problematic.

Declaratively Model the Notion of a Pipeline

Currently we require implementations to infer the existence of images that can be promoted between namespaces. This should be made explicit, so tools know what images can be promoted and therefore can ensure the prerequisites are in place.

More minor tweaks

OpenshiftCluster => OpenShiftCluster
revaluate ImageRegistry object
app is missing buildTool, buildAppCommands, buildImageCommands and deployImageCommands

also ask ourselves if all deployments need to be image centric? perhaps change the name deployApp / buildApp?

Add ids to model

Add ids to model.

  • Service
  • Port
  • LabelSelector
  • Service
  • Port
  • ClaimType

List of Small Tweaks for v0.2.0

Will add more as needed

  • engagement.openshift_cluster => engagement.openshift_clusters
  • openshift_cluster.openshift_resources_to_create => openshift_cluster.openshift_resources
  • add user.user_name

Use the Description Field(s) to document the API

We should leverage the Description field better to document the API, in particular any decisions made that will be hard to backtrack later on - i.e.: if a field is added that doesn't directly map to a core feature/functionality, we need to ensure it is documented for future reference. Overall, just need better documentation.

Support Multiple containers in A Pod

The model is built around single container pods, and thus all the down stream automation is as well. This is a common scenario, so likely not problematic. This ticket is here just to capture that we have this limitation

Add more descriptive info about the application

Here is the relevant output of the code gen for SpringBoot

        return new ApiInfoBuilder()
            .title("EMdP modeling and API design")
            .description("No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)")
            .license("")
            .licenseUrl("")
            .termsOfServiceUrl("")
            .version("0.2.0")
            .contact(new Contact("","", ""))
            .build();
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.