The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

31 Zeilen
1.2 KiB

  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. # Run an HTTP POST against the API with an empty request entity
  6. #
  7. # Usage:
  8. #
  9. # bposte path [options]
  10. #
  11. # path : an API path
  12. # options : bscript options, see bubble.main.BubbleScriptOptions (and parent classes) for more info
  13. #
  14. # Environment variables
  15. #
  16. # BUBBLE_ENTITY : the filename that contains the JSON to send in the POST. If empty, entity is read from stdin
  17. # BUBBLE_API : which API to use. Default is local (http://127.0.0.1:PORT, where PORT is found in .bubble.env)
  18. # BUBBLE_USER : account to use. Default is root@local.local
  19. # BUBBLE_PASS : password for account. Default is password
  20. # BUBBLE_INCLUDE : path to look for JSON include files. default value is to assume we are being run from
  21. # bubble repo, bubble-models repo, or bubble-client and use include files from minimal model.
  22. #
  23. SCRIPT="${0}"
  24. SCRIPT_DIR="$(cd "$(dirname "${SCRIPT}")" && pwd)"
  25. . "${SCRIPT_DIR}"/bubble_common
  26. URL="${1:?no URL provided}"
  27. shift
  28. cat /dev/null | BUBBLE_QUIET=1 ${SCRIPT_DIR}/bubble post -U ${URL} ${@}