codingchili / chili-core

Reactive framework for creating transport & storage-transparent microservices with Vert.x
https://codingchili.github.io/chili-core/
MIT License
14 stars 5 forks source link

Improved generated protocol documentation #252

Closed codingchili closed 5 years ago

codingchili commented 5 years ago

Good:

---
description: "A simple highscore API."
routes:
  update:
    description: "Updates the highscore entries with the given entry."
    model:
      score: "java.lang.Integer"
      player: "java.lang.String"
    roles:
    - "PUBLIC"
  list:
    description: "Returns a list of the current highscore selection."
    roles:
    - "PUBLIC"

Bad:

{
  "model" : { },
  "text" : "A simple highscore API.",
  "routes" : [ {
    "model" : {
      "score" : "java.lang.Integer",
      "player" : "java.lang.String"
    },
    "description" : "Updates the highscore entries with the given entry.",
    "role" : [ "PUBLIC" ],
    "name" : "update"
  }, {
    "model" : { },
    "description" : "Returns a list of the current highscore selection.",
    "role" : [ "PUBLIC" ],
    "name" : "list"
  } ],
  "status" : "ACCEPTED",
  "target" : "api",
  "route" : "documentation"
}
codingchili commented 5 years ago

future notes

codingchili commented 5 years ago
codingchili commented 5 years ago
codingchili commented 5 years ago
codingchili commented 5 years ago

waiting for tests bff1d7754d8e638ae455573f338512efdb8cd5ce

codingchili commented 5 years ago

Tests passed.