Genbase
ApiModule

Create a provide relationship between modules

POST
/module/provide

Authorization

AuthorizationRequiredBearer <token>

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

In: header

Request Body

application/jsonRequired
provider_idRequiredstring
receiver_idRequiredstring
resource_typeRequiredstring
Value in: "workspace" | "action"
descriptionstring
curl -X POST "http://localhost:8000/module/provide" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "provider_id": "string",
    "receiver_id": "string",
    "resource_type": "workspace",
    "description": "string"
  }'

Successful Response

{
  "provider_id": "string",
  "receiver_id": "string",
  "resource_type": "workspace",
  "description": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}