Giter VIP home page Giter VIP logo

gravitee-docs's Introduction

Gravitee.io - Documentation

⚠️
THIS DOCUMENTATION APPLIES TO GRAVITEE VERSIONS RELEASED PRIOR TO 4.0. FOR GRAVITEE 4.0 DOCUMENTATION, CLICK HERE.

How to write documentation for Gravitee.io

Our documentation website is generated from AsciiDoc files.
You’ll find these pages under the /pages directory.

Live Preview

We suggest you to use a live preview utility like the one available with jekyll.

First, you need to install:

Then, you will be able to install required dependencies and start the documentation:

# Install dependencies
bundle install

# Build and start the documentation locally
bundle exec jekyll serve --incremental

Go to http://127.0.0.1:4000 to see your modifications.

For contributions guidelines, please refer to CONTRIBUTING.adoc

gravitee-docs's People

Contributors

a-cordier avatar abourdon avatar aelamrani avatar andrewmcfarlandcampbellgravitee avatar bigmike36c avatar brasseld avatar gaetanmaisse avatar gcusnieux avatar graviteeio avatar jgiovaresco avatar jhaeyaert avatar johngren avatar lazki avatar leleueri avatar loriepisicchio avatar lusoalex avatar lyd1acla1r3 avatar mouligno avatar nicolasgeraud avatar okhelifi avatar passionne avatar phiz71 avatar plsstephenson avatar remisultan avatar renovate[bot] avatar siongravitee avatar tcompiegne avatar thibaudav avatar tiffanymarchi avatar ytvnr avatar

Stargazers

 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

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  avatar  avatar  avatar

gravitee-docs's Issues

[swagger] Paths in swagger doc should be an array

In the swagger doc (1.18.2), for ApiEntity, UpdateApiEntity, PlanEntity, NewPlanEntity, and UpdatePlanEntity, the "paths" field is defined as a Map<String,Path> ("paths": { "type": "object", "additionalProperties":{"$ref":"#/definitions/Path"}}), but the API itself returns a Map<String,Path[]> ("paths": { "type": "object", "additionalProperties": {"type": "array", "items": { "$ref": "#/definitions/Path" }}})

Beautify the documentation

The documentation is ugly.

A beautiful documentation is engaging.
It could be a good thing if the documentation looks like the website.

[upgrade] How to reindex the current index when I upgrade gravitee 1.20

here are the commands :

curl -X GET "https://{ES_HOST}/_cat/indices?v"

curl -X POST "https://{ES_HOST}/_reindex" -H 'Content-Type: application/json' -d'
{
  "source": {
    "index": "gravitee-request-2019.01.22"
  },
  "dest": {
    "index": "tmp_gravitee-request-2019.01.22"
  }
}
'

curl -X DELETE "https://{ES_HOST}/gravitee-request-2019.01.22"


curl -X POST "https://{ES_HOST}/_reindex" -H 'Content-Type: application/json' -d'
{
  "source": {
    "index": "tmp_gravitee-request-2019.01.22"
  },
  "dest": {
    "index": "gravitee-request-2019.01.22"
  }
}
'

curl -X PUT "https://{ES_HOST}/gravitee-request-2019.01.22/_mapping/request" -H 'Content-Type: application/json' -d'
{
 "properties": {
        "@timestamp": {
            "type": "date"
        },
        "api": {
            "type": "keyword"
        },
        "api-key": {
            "type": "keyword",
            "index": false
        },
        "api-response-time": {
            "type": "integer"
        },
        "application": {
            "type": "keyword"
        },
        "endpoint": {
            "type": "keyword"
        },
        "gateway": {
            "type": "keyword"
        },
        "local-address": {
            "type": "keyword",
            "index": false
        },
        "message": {
            "type": "keyword",
            "index": false
        },
        "method": {
            "type": "short"
        },
        "plan": {
            "type": "keyword"
        },
        "proxy-latency": {
            "type": "integer",
            "index": false
        },
        "remote-address": {
            "type": "ip",
            "index": false
        },
        "geoip": {
            "properties": {
                "continent_name": {
                    "type": "keyword",
                    "index": true
                },
                "country_iso_code": {
                    "type": "keyword",
                    "index": true
                },
                "region_name": {
                    "type": "keyword",
                    "index": true
                },
                "city_name": {
                    "type": "keyword",
                    "index": true
                },
                "location": {
                    "type": "geo_point"
                }
            }
        },
        "request-content-length": {
            "type": "integer",
            "index": false
        },
        "response-content-length": {
            "type": "integer",
            "index": false
        },
        "response-time": {
            "type": "integer"
        },
        "status": {
            "type": "short"
        },
        "tenant": {
            "type": "keyword"
        },
        "transaction": {
            "type": "keyword"
        },
        "uri": {
            "type": "keyword"
        },
        "path": {
            "type": "keyword"
        },
        "mapped-path": {
            "type": "keyword"
        },
        "host": {
            "type": "keyword"
        }
    }
}
'

curl -X DELETE "https://{ES_HOST}/tmp_gravitee-request-2019.01.22"

curl -X GET "https://{ES_HOST}/_cat/indices?v"

[management] What is the group restriction on plan and documentation ?

Plan

When you create a new plan, you have the possibility to exclude some group of user to subscribe.

Need some real life example

Documentation

You can manage access control for pages.
You can either include/exclude groups or role

Example : this page of documentation is only accessible for Application Owner

[swagger] Enums documented in swagger definition are incorrect.

In a number of places in the swagger doc (https://docs.gravitee.io/apim/api/1.18/swagger.json or https://raw.githubusercontent.com/gravitee-io/gravitee-docs/master/apim/api/1.18/swagger.json) enumerations are documented as all caps, while using the API produces the same enumerations in all lower case.
For example, ApiEntity.visibility is documented as "PUBLIC" or "PRIVATE", but the values retrieved from the API are "public" or "private".

This renders the swagger documentation unusable for code generation.

I am gradually working through the enums where this occurs. So far, I have found:
ApiEntity.visibility
ApiEntity.state
PlanEntity.validation
PlanEntity.security
PlanEntity.type

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.