curl --user hepsiexpress:561f48031fe9c0fc75c87bc8939be7e5 -i -X POST -H "Content-Type: application/json" -d '{"city":"AFYONKARAHİSAR"}' https://re-cms.com/api/hepsiexpress
Works with cURL Basic Authentication. Only accepted HTTP method is POST and the POST request's content type should be JSON.
curl --user username:password https://re-cms.com/api/hepsiexpress
curl --user username:password -i -X POST -H "Content-Type: application/json" -d '{"city":"İstanbul","state":"Beyoğlu"}' https://re-cms.com/api/hepsiexpress
The fields in JSON data will be fetch as in 'and' query. Applicants collection will be searched which city
and state
fields matches the given post fields.
status
Integer
: Status code. (If lower than 0 can be used as error code, if equals or greater than 0 it is a success code)
msg
String
: Information about request process
data
[Array]
: Fetched applicants in application collection.
name
String
surname
String
phone
String
address
String
company_name
String
company_title
String
company_city
String
company_state
String
billing_address
String
vehicle_model
String
vehicle_age
Integer
about
String
city
String
state
String
education
String
: İlk Okul, Orta Okul, Lise, Üniversite, Yüksek Lisans/Doktora
reference
String
: Sosyal Medya, Gazete İlanı, Kariyer Siteleri, Diğer
foundation_date
Date Object (ISODATE)
experience
Boolean
Hepsiexpress is built on mongoDB. Api will likely support all official mongoDB query and projection operators.
For fetching vehicle_age field equal or greater than 20:
curl --user username:password -i -X POST -H "Content-Type: application/json" -d '{"vehicle_age":{"$gte": 20}}' https://re-cms.com/api/hepsiexpress
Sort, Pagination, Aggregation etc
Studio Recode