"Mantas" API

Documentation version 1.0


API apraksts

"Mantas" API is REST API that can be accessed through explicit HTTP calls. API lets you create, view, modify and delete classifieds as well as work with other classifieds-related objects i.e Contacts.

Basic concepts

As known Pirlsi.lv is classified site where registred users can publish own classified. Registred user profile can generate acces token. If this acces token granted to other aplication than other person, application or web service can have full acces to user classifieds. This means access token owner can preform all CRUD operations in releated user profile.

API resources

"Prksi" api uses the following resources. Each resource detailed in the Reference section of this documentation.

Classified - List of classifieds in user profile. Classified is record about product or service.

Categories - Full list of avilable classified categories. One classified can belong to only one category.

Image

Ātrā sākšana ar PHP#back to top

Getting Started

Complete the steps described in the rest of this page to create a simple PHP application that makes requestests to the "Mantas" API.
Step 1: create project
Step 2: Set up the sample
<?php curl code

The current version of the API lives at https://api.gsa.gov/v3/path.

  • One example of a way to use it.
  • Another example of a way to use it.

Resursu tipi#back to top

Classified
Endpoint What it does
delete DELETE /classified/{ClassifiedId} Deletes an event.
insert POST /classified Creates an event.
update PUT /classified/{ClassifiedId} Updates an event.
list GET /classified Returns events on the specified calendar.
Image
Endpoint What it does
delete DELETE /classified/{ClassifiedId}/image/{ImageId} Deletes an event.
insert POST /classified/{ClassifiedId}/image Creates an event.
list GET /classified/{ClassifiedId}/image Returns events on the specified calendar.
Categories
Endpoint What it does
list GET /categorie Returns events on the specified calendar.

Datu formāts - #back to top

integer
string
array of string
Decimal(15,2)
float

Classified - #back to top

Lorem the It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. long established fact that a reader will English.

Lorem the It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. long established fact that a reader will English.

Image - #back to top

Lorem the It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. long established fact that a reader will English.

Lorem the It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. long established fact that a reader will English.

Categories - #back to top

Lorem the It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. long established fact that a reader will English.

Lorem the It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. long established fact that a reader will English.