File tree 10 files changed +34
-11
lines changed
10 files changed +34
-11
lines changed Original file line number Diff line number Diff line change 73
73
<include name =" **/*.php" />
74
74
</fileset >
75
75
</copy >
76
+ <copy todir =" ${ basedir } /build/phar/phpdraft/src/Lukasoppermann/Httpstatus" >
77
+ <fileset dir =" vendor/lukasoppermann/http-status/src" >
78
+ <include name =" **/*.php" />
79
+ </fileset >
80
+ </copy >
76
81
<copy todir =" ${ basedir } /build/phar/phpdraft" >
77
82
<fileset dir =" ${ basedir } " >
78
- <include name =" **/index.php " />
83
+ <include name =" **/phpdraft " />
79
84
<exclude name =" vendor/**" />
80
85
</fileset >
81
86
</copy >
84
89
<arg value =" -pi" />
85
90
<arg value =" -e" />
86
91
<arg value =" s/\'vendor\/autoload.php/__DIR__\ .\ \'\/src\/PHPDraft\/Core\/Autoloader.php/g" />
87
- <arg value =" ${ basedir } /build/phar/phpdraft/index.php " />
92
+ <arg value =" ${ basedir } /build/phar/phpdraft/phpdraft " />
88
93
</exec >
89
94
90
95
<exec executable =" ${ basedir } /build/phar-version.php" outputproperty =" _version" >
153
158
<target name =" -phar-determine-version" >
154
159
<exec executable =" bash" outputproperty =" version" >
155
160
<arg value =" -c" />
156
- <arg value =" php ${ basedir } /index.php -v | grep -ohE '([0-9]{1,}\.)+[0-9]{1,}'" />
161
+ <arg value =" php ${ basedir } /phpdraft -v | grep -ohE '([0-9]{1,}\.)+[0-9]{1,}'" />
157
162
</exec >
158
163
</target >
159
164
</project >
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if ($execute) {
28
28
exit ;
29
29
}
30
30
31
- require_once __PHPDRAFT_PHAR_ROOT__ .DIRECTORY_SEPARATOR .'phpdraft ' .DIRECTORY_SEPARATOR .'index.php ' ;
31
+ require_once __PHPDRAFT_PHAR_ROOT__ .DIRECTORY_SEPARATOR .'phpdraft ' .DIRECTORY_SEPARATOR .'phpdraft ' ;
32
32
}
33
33
34
34
__HALT_COMPILER ();
Original file line number Diff line number Diff line change 5
5
}
6
6
7
7
file_put_contents (
8
- __DIR__ . '/phar/phpdraft/index.php ' ,
8
+ __DIR__ . '/phar/phpdraft/phpdraft ' ,
9
9
str_replace (
10
10
"define('VERSION', '0'); " ,
11
11
"define('VERSION', ' " . $ argv [1 ] . "'); " ,
12
- file_get_contents (__DIR__ . '/phar/phpdraft/index.php ' )
12
+ file_get_contents (__DIR__ . '/phar/phpdraft/phpdraft ' )
13
13
)
14
14
);
15
15
Original file line number Diff line number Diff line change 3
3
"description" : " This is a parser for API Blueprint files in PHP." ,
4
4
"minimum-stability" : " stable" ,
5
5
"license" : " GPL-3.0" ,
6
+ "bin" : [" phpdraft" ],
6
7
"authors" : [
7
8
{
8
9
"name" : " Sean Molenaar" ,
File renamed without changes.
Original file line number Diff line number Diff line change @@ -201,7 +201,6 @@ use Enjoy\HttpStatusCode\Statuscodes;
201
201
<?php endforeach ; ?>
202
202
<?php endif ; ?>
203
203
<?php if (!empty ($ request ->struct )): ?>
204
-
205
204
<h5>Structure</h5>
206
205
<div class="row">
207
206
<?= $ request ->struct ?>
@@ -216,7 +215,7 @@ use Enjoy\HttpStatusCode\Statuscodes;
216
215
<?php endif ; ?>
217
216
218
217
<?php if ($ transition ->data_variables !== null ): ?>
219
- <h5>Data object</h5>
218
+ <h5>Request object</h5>
220
219
<?= $ transition ->data_variables ?>
221
220
<?php endif ; ?>
222
221
</div>
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ use Enjoy\HttpStatusCode\Statuscodes;
143
143
<?= $ transition ->url_variables ; ?>
144
144
<?php endif ; ?>
145
145
<?php if ($ transition ->data_variables !== null ): ?>
146
- <h5>Data object</h5>
146
+ <h5>Request object</h5>
147
147
<?= $ transition ->data_variables ?>
148
148
<?php endif ; ?>
149
149
</div>
Original file line number Diff line number Diff line change 401
401
<span class="base-url">https://owner-api.teslamotors.com</span><em>/oauth/token</em>
402
402
403
403
404
- <h5>Data object</h5>
404
+ <h5>Request object</h5>
405
405
<table class="table table-striped mdl-data-table mdl-js-data-table "><table class="table table-striped mdl-data-table mdl-js-data-table "><tr><td><span>grant_type</span></td><td><code>string</code></td><td> <span class="status"></span></td><td><p>The type of oAuth grant. Always "password"</p>
406
406
</td><td><span class="example-value pull-right">password</span></td></tr><tr><td><span>client_id</span></td><td><code>string</code></td><td> <span class="status"></span></td><td><p>The oAuth client ID</p>
407
407
</td><td><span class="example-value pull-right">abc</span></td></tr><tr><td><span>client_secret</span></td><td><code>string</code></td><td> <span class="status"></span></td><td><p>The oAuth client secret</p>
Original file line number Diff line number Diff line change 187
187
<div class="mdl-tabs__panel is-active" id="authentication-tokens-get-an-access-token-request-panel">
188
188
<h5>Example URI</h5>
189
189
<span class="base-url">https://owner-api.teslamotors.com</span><em>/oauth/token</em>
190
- <h5>Data object</h5>
190
+ <h5>Request object</h5>
191
191
<table class="table table-striped mdl-data-table mdl-js-data-table "><table class="table table-striped mdl-data-table mdl-js-data-table "><tr><td><span>grant_type</span></td><td><code>string</code></td><td> <span class="status"></span></td><td><p>The type of oAuth grant. Always "password"</p>
192
192
</td><td><span class="example-value pull-right">password</span></td></tr><tr><td><span>client_id</span></td><td><code>string</code></td><td> <span class="status"></span></td><td><p>The oAuth client ID</p>
193
193
</td><td><span class="example-value pull-right">abc</span></td></tr><tr><td><span>client_secret</span></td><td><code>string</code></td><td> <span class="status"></span></td><td><p>The oAuth client secret</p>
Original file line number Diff line number Diff line change @@ -73,6 +73,24 @@ their feed. Posts are closely tied to the follow graph...
73
73
### Retrieve a Post [GET ]
74
74
Returns a specific Post.
75
75
76
+ + Response 200
77
+
78
+ [Post][]
79
+
80
+ ### Update a Post [PUT ]
81
+ Updates a specific Post.
82
+
83
+ + Parameters
84
+ + post_id: `2` (string ) - The id of the Post.
85
+
86
+ + Attributes
87
+ + Key: `key` (string ) - Key for the object
88
+ + Object
89
+ + Key1: `key1` (string ) - Key1 for the object
90
+ + Key2: `key2` (string ) - Key2 for the object
91
+
92
+ + Request (application/json)
93
+
76
94
+ Response 200
77
95
78
96
[Post][]
You can’t perform that action at this time.
0 commit comments