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

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

1  
!7
2  
3  
concept LetMeIn {
4  
  long clientID;
5  
  S where;
6  
  S botName;
7  
  S botHome;
8  
  S rationale;
9  
  S otherComments;
10  
}
11  
12  
p { db(); }
13  
14  
html {
15  
  if (eqic(uri, "/let-me-in")) {
16  
    long clientID = getLong clientID(params);
17  
    if (clientID == 0) ret "Need clientID";
18  
    cset(uniq LetMeIn(+clientID),
19  
      paramsFromMap(params, 'where, 'botName, 'botHome, 'rationale, 'otherComments));
20  
    ret "OK, your wish was registered, " + clientID + ". Please stay tuned";
21  
  }
22  
  
23  
  ret "n=" + countConcepts(LetMeIn);
24  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

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: 386 / 1678
Version history: 3 change(s)
Referenced in: [show references]