From d26bbba5c1a46162695b950ed045f0c3057f8077 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Fri, 15 Oct 2010 16:36:05 +0200 Subject: more explicit names --- uml/api.dot | 2 +- uml/api.lua | 8 ++++---- uml/api.png | Bin 25676 -> 27700 bytes 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'uml') diff --git a/uml/api.dot b/uml/api.dot index 4d2a3dc..43d92ca 100644 --- a/uml/api.dot +++ b/uml/api.dot @@ -3,7 +3,7 @@ digraph { node [shape=record]; "Method" - [label="{\N|authentication : boolean\lbase_url : string\ldescription : string\lexpected : table<number>\lformat : table<string>\lmethod : string\loptional : table<string>\lpath : string\lrequired : table<string>\l}"]; + [label="{\N|authentication : boolean\lbase_url : string\ldescription : string\lexpected_status : table<number>\lformat : 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\lformat : table<string>\lmeta : table<string,string>\lmethods : table<string,Method>\lname : string\lversion : string\l}"]; diff --git a/uml/api.lua b/uml/api.lua index 16f187a..0cd4596 100644 --- a/uml/api.lua +++ b/uml/api.lua @@ -6,9 +6,9 @@ class 'Method' has._method = { is = 'ro', isa = 'string', required = true } has.path = { is = 'ro', isa = 'string', required = true } -has.expected = { is = 'ro', isa = 'table' } -has.required = { is = 'ro', isa = 'table' } -has.optional = { is = 'ro', isa = 'table' } +has.expected_status = { is = 'ro', isa = 'table' } +has.required_params = { is = 'ro', isa = 'table' } +has.optional_params = { is = 'ro', isa = 'table' } has.base_url = { is = 'ro', isa = 'string' } has.description = { is = 'ro', isa = 'string' } has.authentication = { is = 'ro', isa = 'boolean' } @@ -22,8 +22,8 @@ has.methods = { is = 'ro', isa = 'table', required = true has.base_url = { is = 'ro', isa = 'string' } has.description = { is = 'ro', isa = 'string' } has.authentication = { is = 'ro', isa = 'boolean' } +has.format = { is = 'ro', isa = 'table' } has.version = { is = 'ro', isa = 'string' } has.authority = { is = 'ro', isa = 'string' } -has.format = { is = 'ro', isa = 'table' } has.meta = { is = 'ro', isa = 'table' } diff --git a/uml/api.png b/uml/api.png index b2045c9..1334481 100644 Binary files a/uml/api.png and b/uml/api.png differ -- cgit v1.2.3