Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

UML: remove lua, and improve dot

  • Loading branch information...
commit 14b93483f15062a3ac3ff2b096561a744a7ac1f2 1 parent d7de75a
@fperrad fperrad authored
View
6 uml/Makefile
@@ -2,9 +2,5 @@
api.png: api.dot
dot -T png -o api.png api.dot
-api.dot: api.lua
- coat2dot api > api.dot
- perl -i.bak -pe "s/_method/method/g" api.dot
-
clean:
- rm *.bak *.dot *.png
+ rm *.png
View
11 uml/api.dot
@@ -2,12 +2,13 @@ digraph {
node [shape=record];
- "Method"
- [label="{\N|authentication : boolean\lbase_url : string\ldescription : string\lexpected_status : table<number>\lformats : table<string>\lmethod : string\loptional_params : table<string>\lpath : string\lrequired_params : table<string>\l}"];
-
"API"
- [label="{\N|authentication : boolean\lauthority : string\lbase_url : string\ldescription : string\lformats : table<string>\lmeta : table<string,string>\lmethods : table<string,Method>\lname : string\lversion : string\l}"];
- "API" -> "Method" // attr isa table<string,Method>
+ [label="{\N|methods : map&lt;string,Method&gt;\lname : string\l\lauthentication : boolean\lauthority : string\lbase_url : string\ldescription : string\lformats : array&lt;string&gt;\lmeta : map&lt;string,string&gt;\lversion : string\l}"];
+
+ "API" -> "Method"
[label = "methods", arrowhead = none, arrowtail = odiamond];
+ "Method"
+ [label="{\N|method : string\lpath : string\l\lauthentication : boolean\lbase_url : string\ldescription : string\lexpected_status : array&lt;number&gt;\lformats : array&lt;string&gt;\loptional_params : array&lt;string&gt;\lrequired_params : array&lt;string&gt;\l}"];
+
}
View
29 uml/api.lua
@@ -1,29 +0,0 @@
-
-require 'Coat'
-require 'Coat.Types'
-
-class 'Method'
-
-has._method = { is = 'ro', isa = 'string', required = true }
-has.path = { is = 'ro', isa = 'string', required = true }
-has.expected_status = { is = 'ro', isa = 'table<number>' }
-has.required_params = { is = 'ro', isa = 'table<string>' }
-has.optional_params = { is = 'ro', isa = 'table<string>' }
-has.base_url = { is = 'ro', isa = 'string' }
-has.description = { is = 'ro', isa = 'string' }
-has.authentication = { is = 'ro', isa = 'boolean' }
-has.formats = { is = 'ro', isa = 'table<string>' }
-
-
-class 'API'
-
-has.name = { is = 'ro', isa = 'string', required = true }
-has.methods = { is = 'ro', isa = 'table<string,Method>', required = true }
-has.base_url = { is = 'ro', isa = 'string' }
-has.description = { is = 'ro', isa = 'string' }
-has.authentication = { is = 'ro', isa = 'boolean' }
-has.formats = { is = 'ro', isa = 'table<string>' }
-has.version = { is = 'ro', isa = 'string' }
-has.authority = { is = 'ro', isa = 'string' }
-has.meta = { is = 'ro', isa = 'table<string,string>' }
-
View
BIN  uml/api.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.