Genbase
ApiModule

Create module

POST
/module

Authorization

AuthorizationRequiredBearer <token>

JWT Token for authenticated users (obtained via /auth/jwt/login).

In: header

Request Body

application/jsonRequired
project_idRequiredstring
Format: "uuid"
ownerRequiredstring
kit_idRequiredstring
versionRequiredstring
env_varsRequiredobject
pathRequiredstring
Pattern: "^[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)*$"
module_namestring
curl -X POST "http://localhost:8000/module/" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
    "owner": "string",
    "kit_id": "string",
    "version": "string",
    "env_vars": {
      "property1": "string",
      "property2": "string"
    },
    "path": "string",
    "module_name": "string"
  }'

Successful Response

{
  "module_id": "string",
  "module_name": "string",
  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
  "kit_id": "string",
  "owner": "string",
  "version": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "env_vars": {
    "property1": "string",
    "property2": "string"
  },
  "repo_name": "string",
  "path": "string"
}