Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----USING CURL REQUEST---------
- 1. REQUEST TOKEN
- curl -X POST http://110.74.218.219:8080/RestEngine/oauth/token -H 'content-type: application/x-www-form-urlencoded' -d 'username=citybus&password=ba0228f6e48ba7942d79e2b44e6072ee&grant_type=password&client_id=third_party&client_secret=16681c9ff419d8ecc7cfe479eb02a7a&scope=trust'
- 2. BUS PAYMENT
- curl -X POST http://110.74.218.219:8080/RestEngine/api/v1/citybus/commit -H 'authorization: Bearer 5bd9f19b-2be3-4102-8587-7893cd9ab818' -H 'content-type: application/json' -d '{
- "bus_id": "550001",
- "wing_account": "00047461",
- "transaction_time": "20170901010100"
- }'
- -----USING HTTP REQUEST---------
- 1. REQUEST TOKEN
- POST /RestEngine/oauth/token HTTP/1.1
- Host: localhost:8081
- Content-Type: application/x-www-form-urlencoded
- username=citybus&password=ba0228f6e48ba7942d79e2b44e6072ee&grant_type=password&client_id=third_party&client_secret=16681c9ff419d8ecc7cfe479eb02a7a&scope=trust
- 2. BUS PAYMENT
- POST /RestEngine/api/v1/citybus/commit HTTP/1.1
- Host: localhost:8081
- Authorization: Bearer 5bd9f19b-2be3-4102-8587-7893cd9ab818
- Content-Type: application/json
- {
- "bus_id": "550001",
- "wing_account": "00047461",
- "transaction_time": "20170901010100"
- }
Add Comment
Please, Sign In to add comment