diff options
Diffstat (limited to 'uml')
| -rw-r--r-- | uml/Makefile | 6 | ||||
| -rw-r--r-- | uml/api.dot | 11 | ||||
| -rw-r--r-- | uml/api.lua | 29 | ||||
| -rw-r--r-- | uml/api.png | bin | 27747 -> 30447 bytes |
4 files changed, 7 insertions, 39 deletions
diff --git a/uml/Makefile b/uml/Makefile index 219141c..0f77174 100644 --- a/uml/Makefile +++ b/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
\ No newline at end of file + rm *.png diff --git a/uml/api.dot b/uml/api.dot index 1b81647..d5ade1d 100644 --- a/uml/api.dot +++ b/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<string,Method>\lname : string\l\lauthentication : boolean\lauthority : string\lbase_url : string\ldescription : string\lformats : array<string>\lmeta : map<string,string>\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<number>\lformats : array<string>\loptional_params : array<string>\lrequired_params : array<string>\l}"]; + } diff --git a/uml/api.lua b/uml/api.lua deleted file mode 100644 index 83f1dd2..0000000 --- a/uml/api.lua +++ /dev/null @@ -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>' } - diff --git a/uml/api.png b/uml/api.png Binary files differindex 2ed711a..a147d35 100644 --- a/uml/api.png +++ b/uml/api.png |
