🔁APIs

From Endpoints

Form Index

get

You Can Get All Forms.

Responses
200Success
application/json
Responseany of
objectOptional
or
objectOptional
get
GET /api/forms HTTP/1.1
Host: cm.test
Accept: */*
200Success
{}

Form Show

get

Select From By ID and show fileds of it.

Path parameters
modelintegerRequired

The model ID

Responses
200Success
application/json
Responseany of
objectOptional
or
objectOptional
get
GET /api/forms/{model} HTTP/1.1
Host: cm.test
Accept: */*
{}

From Requests Endpoints

Form Requests Index

get

You Can View All Requests Come to Selected Form.

Query parameters
user_idstring | nullOptional
form_idintegerOptional
Responses
200Success
application/json
Responseany of
objectOptional
or
objectOptional
get
GET /api/form-requests HTTP/1.1
Host: cm.test
Accept: */*
{}

Form Requests Store

post

You can use this endpoint to store the form requests.

Body
form_idintegerRequired
payloadarray | nullOptional
Responses
200Success
application/json
Responseany of
objectOptional
or
objectOptional
post
POST /api/form-requests HTTP/1.1
Host: cm.test
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "form_id": 1,
  "payload": [
    "text"
  ]
}
{}

Form Requests Show

get

You Can Show A Selected Request.

Path parameters
modelintegerRequired

The model ID

Responses
200Success
application/json
Responseany of
objectOptional
or
objectOptional
get
GET /api/form-requests/{model} HTTP/1.1
Host: cm.test
Accept: */*
{}

Last updated

Was this helpful?