api.cruiseway.gr (1.1.0)

Download OpenAPI specification:Download

Auth

Login

Logs a user into the system and returns an authentication token.

Request Body schema: application/json
email
required
string <email>
password
required
string <password>

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    },
  • "message": "string"
}

Logout

Logs out the user by potentially invalidating the token on the server-side (optional) and requires a bearer token in the Authorization header.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Register

Registers a new user into the system and returns an authentication token.

Request Body schema: application/json
firstname
required
string
lastname
required
string
email
required
string <email>
password
required
string <password>
password_confirmation
required
string <password>

Responses

Request samples

Content type
application/json
{
  • "firstname": "string",
  • "lastname": "string",
  • "email": "[email protected]",
  • "password": "pa$$word",
  • "password_confirmation": "pa$$word"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    },
  • "message": "string"
}

Reset Password

Resets a user's password and returns an authentication token.

Request Body schema: application/json
token
required
string
email
required
string <email>
password
required
string <password>
password_confirmation
required
string <password>

Responses

Request samples

Content type
application/json
{
  • "token": "string",
  • "email": "[email protected]",
  • "password": "pa$$word",
  • "password_confirmation": "pa$$word"
}

Response samples

Content type
application/json
null

Content

Get Filters

Returns a list of filters for the content.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ],
  • "message": "string"
}

Newsletter

Newsletter

Insert a new subscriber in the our newsletter list.

Request Body schema: application/json
email
required
string <email>
name
string

Responses

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Cruises

Get Cruises

Get cruise list with filters in a length-aware paginated format.

query Parameters
brand[]
Array of arrays
Example: brand[]=1&brand[]=2

The brand to filter cruises by.

destination[]
Array of arrays
Example: destination[]=1&destination[]=2

The destination to filter cruises by.

duration[]
Array of arrays
Example: duration[]=1&duration[]=2

The duration to filter cruises by.

page
integer >= 1
Default: 1

The page number to retrieve.

port[]
Array of arrays
Example: port[]=1&port[]=2

The port to filter cruises by.

price[]
Array of arrays
Example: price[]=1&price[]=2

The price to filter cruises by.

brand[]
Array of arrays
Example: brand[]=1&brand[]=2

The brand to filter cruises by.

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get Cruise

Get cruise details by ID.

path Parameters
cruiseId
required
integer

ID of the Cruise

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get Cruise for Booking

Get cruise details by ID for booking.

path Parameters
cruiseId
required
integer

ID of the Cruise

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}

Get Cruise Category Prices for Booking

Get cruise category prices by ID for booking.

Request Body schema: application/json
cruise_id
required
integer
required
Array of objects

Responses

Request samples

Content type
application/json
{
  • "cruise_id": 0,
  • "cabins": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "data": {
    }
}