Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
B
bat_api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
bat_api
Commits
b89312d4
Commit
b89312d4
authored
Jan 15, 2016
by
istos
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'BAT_NG' into 7.x-2.x
parents
c25b6838
ba83ce18
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
346 additions
and
318 deletions
+346
-318
bat_api.info
bat_api.info
+0
-1
bat_api.module
bat_api.module
+322
-293
bat_api.services.inc
bat_api.services.inc
+18
-18
includes/bat_api.rooms_unit_field_handler.inc
includes/bat_api.rooms_unit_field_handler.inc
+6
-6
No files found.
bat_api.info
View file @
b89312d4
...
...
@@ -5,7 +5,6 @@ php = 5.3.9
package
=
BAT
dependencies
[]
=
bat_availability
dependencies
[]
=
rest_server
dependencies
[]
=
services
...
...
bat_api.module
View file @
b89312d4
This diff is collapsed.
Click to expand it.
bat_api.services.inc
View file @
b89312d4
...
...
@@ -12,7 +12,7 @@ function bat_api_default_services_endpoint() {
$endpoint
->
api_version
=
3
;
$endpoint
->
name
=
'bat_api'
;
$endpoint
->
server
=
'rest_server'
;
$endpoint
->
path
=
'bat/v
1
'
;
$endpoint
->
path
=
'bat/v
2
'
;
$endpoint
->
authentication
=
array
(
'services'
=>
'services'
,
);
...
...
@@ -36,7 +36,7 @@ function bat_api_default_services_endpoint() {
),
);
$endpoint
->
resources
=
array
(
'
uni
ts'
=>
array
(
'
even
ts'
=>
array
(
'operations'
=>
array
(
'index'
=>
array
(
'enabled'
=>
'1'
,
...
...
@@ -45,23 +45,15 @@ function bat_api_default_services_endpoint() {
'enabled'
=>
'1'
,
),
),
'actions'
=>
array
(
'add'
=>
array
(
'enabled'
=>
'1'
,
),
),
),
'
availability
'
=>
array
(
'
events-calendar
'
=>
array
(
'operations'
=>
array
(
'index'
=>
array
(
'enabled'
=>
'1'
,
),
'update'
=>
array
(
'enabled'
=>
'1'
,
),
),
),
'
pricing
'
=>
array
(
'
units
'
=>
array
(
'operations'
=>
array
(
'index'
=>
array
(
'enabled'
=>
'1'
,
...
...
@@ -70,15 +62,15 @@ function bat_api_default_services_endpoint() {
'enabled'
=>
'1'
,
),
),
),
'booking'
=>
array
(
'operations'
=>
array
(
'index'
=>
array
(
'actions'
=>
array
(
'add'
=>
array
(
'enabled'
=>
'1'
,
),
),
'actions'
=>
array
(
'add'
=>
array
(
),
'units-calendar'
=>
array
(
'operations'
=>
array
(
'index'
=>
array
(
'enabled'
=>
'1'
,
),
),
...
...
@@ -87,6 +79,11 @@ function bat_api_default_services_endpoint() {
'actions'
=>
array
(
'login'
=>
array
(
'enabled'
=>
'1'
,
'settings'
=>
array
(
'services'
=>
array
(
'resource_api_version'
=>
'1.0'
,
),
),
),
'logout'
=>
array
(
'enabled'
=>
'1'
,
...
...
@@ -96,6 +93,9 @@ function bat_api_default_services_endpoint() {
),
),
),
'token'
=>
array
(
'enabled'
=>
'1'
,
),
),
),
);
...
...
includes/bat_api.rooms_unit_field_handler.inc
View file @
b89312d4
<?php
interface
BatUnitFieldHandlerInterface
{
public
function
getFieldType
();
public
function
getFieldType
();
public
function
getFieldInfo
();
public
function
getFieldInfo
();
}
abstract
class
BatUnitFieldHandlerBase
implements
BatUnitFieldHandlerInterface
{
protected
$unit
;
protected
$unit
;
public
function
__construct
(
BatUnit
$unit
)
{
$this
->
unit
=
$unit
;
}
public
function
__construct
(
BatUnit
$unit
)
{
$this
->
unit
=
$unit
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment