Code Monkey home page Code Monkey logo

api-spec's Introduction

Docker Repository on Quay

Giant Swarm API Specification

This repository holds the specification for the Giant Swarm API, starting at version v4.

The specs are written in the OpenAPI v2.0 format, formerly known as Swagger.

The specification YAML files are:

Human-friendly API Documentation

We host a browser-friendly version at https://docs.giantswarm.io/api/

That documentation is a rendition of the specification of the master branch of this repository.

See the details folder of this repo for additional content about the API.

Specification development

As usual, collaboration on this spec is done based on feature branches and pull requests.

Feature branches shall be merged into master only when the API functionality they describe is implemented and available to users of the Giant Swarm API.

Hidden operations

Some API operations contained in the spec are not yet usable, yet we want to have them in the spec already. These operations are marked using the x-internal: true attribute and filtered out before rendering the documentation.

Conventions

  • Attribute names use only lowercase letters and the underscore as a seperator, like attribute_name.
  • Paths/routes have a trailing slash (/path/ instead of /path)
  • Time data is given in the form "2000-01-01T12:00:00.000Z". The number of decimal places for the seconds component may vary.

YAML conventions

Please obey these conventions when editing the spec YAML files:

  • Indent using spaces, not tabs
  • 2 spaces per indentation level
  • avoid quotes where possible

Validation

Run make validate to check the YAML integrity as well as the validity of the OpenAPI spec.

Rendering an HTML documentation preview

Use this command from the root directory of your clone of this repo:

make run-server

Then open http://localhost:8080/ to access your specs displayed via ReDoc.

Running a mock server

make mock

Then access http://localhost:4010 as your endpoint. E. g. gsctl -e http://localhost:4010 list clusters.

Alternatively, you can run make mock-dynamic to let the mock server respond with dynamically generated fake data.

api-spec's People

Contributors

axbarsan avatar indyfree avatar josephsalisbury avatar marcelmue avatar marians avatar nprokopic avatar oponder avatar paurosello avatar pipo02mix avatar schjan avatar teemow avatar theobrigitte avatar tuommaki avatar ubergesundheit avatar xh3b4sd avatar

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.