This removes api authentication with token in favor of signature method. Refactored code and clean up. It add more unit test plus code coverage in test/coverage. - Added : mardown documentation. - Changed : model Stats::getQuestionStats to pass question as route parameter - Changed : now requests need to have a signature generated with a private key (crm password) using hmac sha256 wrapping url, method and parameters - Changed : now timestamp will timeout if request is slower than "timestampTimeout", this means crm will reject the request - Changed : throw ValidationException s instead of TypeErrors - Changed : timestamp has to be send in request with a DateTime format, it also has to a UTC value - Fixed : Change WPCRM dynamic session key, this could prevent spoofing session in some cases. - Fixed : closure validation - Fixed : model mutator not catching reflectionException - Fixed : really send json request using Guzzle internal lib methods. - Removed : Api AUTH system with api token - Removed : ApiError::needAuth - Removed : composer vlucas/dotenv, .env file is not handled any more. - Removed : LoginException - Removed : memcached dependency - Removed : need of memcached - Removed : unused service provider - Removed : WpCrm::forceLogin - Removed : WpCrm::sendArcadiaMailDefault - Removed : WpCrm::sendArcadiaMailGame - Updated : PHPCS rules, phpcs fixes and refactored code
106 lines
No EOL
2.3 KiB
JSON
106 lines
No EOL
2.3 KiB
JSON
{
|
|
"apiV2.ping": {
|
|
"uri": "api/v2/ping",
|
|
"methods": [
|
|
"GET",
|
|
"HEAD"
|
|
]
|
|
},
|
|
"apiV2.optin": {
|
|
"uri": "api/v2/optin",
|
|
"methods": [
|
|
"POST"
|
|
]
|
|
},
|
|
"apiV2.customers.store": {
|
|
"uri": "api/v2/customers",
|
|
"methods": [
|
|
"POST"
|
|
]
|
|
},
|
|
"apiV2.customers.show": {
|
|
"uri": "api/v2/customers/{serviceCustomer}",
|
|
"methods": [
|
|
"GET",
|
|
"HEAD"
|
|
]
|
|
},
|
|
"apiV2.customers.update": {
|
|
"uri": "api/v2/customers/{serviceCustomer}",
|
|
"methods": [
|
|
"PUT",
|
|
"PATCH"
|
|
]
|
|
},
|
|
"apiV2.customers.destroy": {
|
|
"uri": "api/v2/customers/{serviceCustomer}",
|
|
"methods": [
|
|
"DELETE"
|
|
]
|
|
},
|
|
"apiV2.customers.authenticate": {
|
|
"uri": "api/v2/customers/authenticate",
|
|
"methods": [
|
|
"POST"
|
|
]
|
|
},
|
|
"apiV2.customers.activate": {
|
|
"uri": "api/v2/customers/{serviceCustomer}/activate",
|
|
"methods": [
|
|
"POST"
|
|
]
|
|
},
|
|
"apiV2.customers.answers.store": {
|
|
"uri": "api/v2/customers/{serviceCustomer}/answers",
|
|
"methods": [
|
|
"POST"
|
|
]
|
|
},
|
|
"apiV2.arcadia.outgoingMailDefault": {
|
|
"uri": "api/v2/arcadia/outgoing-mail/default",
|
|
"methods": [
|
|
"POST"
|
|
]
|
|
},
|
|
"apiV2.arcadia.outgoingMailGame": {
|
|
"uri": "api/v2/arcadia/outgoing-mail/game",
|
|
"methods": [
|
|
"POST"
|
|
]
|
|
},
|
|
"apiV2.questions.index": {
|
|
"uri": "api/v2/questions",
|
|
"methods": [
|
|
"GET",
|
|
"HEAD"
|
|
]
|
|
},
|
|
"apiV2.questions.unAnsweredBy": {
|
|
"uri": "api/v2/questions/un-answered-by/{serviceCustomer}",
|
|
"methods": [
|
|
"GET",
|
|
"HEAD"
|
|
]
|
|
},
|
|
"apiV2.questions.indexWithResponse": {
|
|
"uri": "api/v2/questions/with-answers/{serviceCustomer}",
|
|
"methods": [
|
|
"GET",
|
|
"HEAD"
|
|
]
|
|
},
|
|
"apiV2.stats.brandStats": {
|
|
"uri": "api/v2/stats/brand",
|
|
"methods": [
|
|
"GET",
|
|
"HEAD"
|
|
]
|
|
},
|
|
"apiV2.stats.questionStats": {
|
|
"uri": "api/v2/stats/question/{serviceQuestion}",
|
|
"methods": [
|
|
"GET",
|
|
"HEAD"
|
|
]
|
|
}
|
|
} |