Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image Upload data

24
LINES

< > BotCompany Repo | #1025167 - Bouncer Web Service [let bots into The Swamp, dev.]

JavaX module (desktop) [tags: butter use-pretranspiled] - homepage

Libraryless. Click here for Pure Java version (12467L/84K).

!7

concept LetMeIn {
  long clientID;
  S where;
  S botName;
  S botHome;
  S rationale;
  S otherComments;
}

p { db(); }

html {
  if (eqic(uri, "/let-me-in")) {
    long clientID = getLong clientID(params);
    if (clientID == 0) ret "Need clientID";
    cset(uniq LetMeIn(+clientID),
      paramsFromMap(params, 'where, 'botName, 'botHome, 'rationale, 'otherComments));
    ret "OK, your wish was registered, " + clientID + ". Please stay tuned";
  }
  
  ret "n=" + countConcepts(LetMeIn);
}

download  show line numbers  debug dex   

Travelled to 2 computer(s): mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1025167
Snippet name: Bouncer Web Service [let bots into The Swamp, dev.]
Eternal ID of this version: #1025167/4
Text MD5: 8518a6da6206e65c322bbd46a6b1433b
Transpilation MD5: 3bc6b913859b1d92fd1c3d44e59a214d
Author: stefan
Category: javax / bos
Type: JavaX module (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-10 02:28:45
Source code size: 521 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 21 / 57
Version history: 3 change(s)
Referenced in: [show references]