-
Notifications
You must be signed in to change notification settings - Fork 2
Equipment API Documentation
ege-kaya edited this page Dec 28, 2021
·
11 revisions
GET 'api/equipments/<id>/'
-
Author: Ege Can Kaya
-
Definition: Allows a user to fetch an equipment from database
-
Example Response Value:
{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally posted an equipment", "type": "Create", "actor": { "type": "Person", "name": "Sally" }, "object": { "type": "Equipment", "postId": "", "ownerId": "", "content": "", "title": "Beginner friendly tennis racket", "creationDate": "2014-11-31T23:00:00-08:00", "lastUpdateDate": "2014-11-31T23:00:00-08:00", "numberOfClicks": 0, "location": { "name": "Etiler Tennis Club", "type": "Place", "longitude": 12.34, "latitude": 56.78, "altitude": 90, "units": "m" }, "url":"", "sport": "Tennis", "equipmentMinSkillLevel": 1, "equipmentMaxSkillLevel": 5, "equipmentType": "racket" } }
-
Parameters
Parameter Description Parameter Type Data Type id ID of the searched equipment Path Int -
Response Messages
- 200: Ok.
- 404: Not Found.
GET 'api/equipments/'
-
Author: Ege Can Kaya
-
Definition: Returns a list of post ids using filters.
-
Example Response Value:
{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Object history", "type": "OrderedCollection", "totalItems": 2, "totalPages": 2, "orderedItems": [ { "object": "/api/equipments/1/" }, { "object": "/api/equipments/2/" } ] }
-
Parameters
Parameter Description Parameter Type Data Type query Query string Query String creation_date Creation date of the searched equipment Body DateTime location Location of the searched equipment Body String sport Sport type of the searched equipment Body Char latitude Latitude of the searched event Body Float longitude Longitude of the searched event Body Float owner Owner of the searched event Body User min_skill Min skill level of the searched equipment Body Int max_skill Max skill level of the searched equipment Body Int equipment_type Equipment type of the searched equipment Body String -
Response Messages
- 200: Ok.
GET 'api/equipments?page=<page>'
-
Author: Ege Can Kaya
-
Definition: Returns a list of equipment ids using filters.
-
Example Response Value:
[1,2,3]
-
Parameters
Parameter Description Parameter Type Data Type page Page of the list of events Query Integer -
Response Messages
- 200: Ok.
- 500: Internal server error.
POST 'api/equipments/'
-
Author: Ege Can Kaya
-
Definition: Allows a user to create an event
-
Example Response Value:
{ "@context": "https://www.w3.org/ns/activitystreams", "summary": "Sally posted an equipment", "type": "Create", "actor": { "type": "Person", "name": "Sally" }, "object": { "type": "Equipment", "postId": "", "ownerId": "", "content": "", "title": "Beginner friendly tennis racket", "creationDate": "2014-11-31T23:00:00-08:00", "lastUpdateDate": "2014-11-31T23:00:00-08:00", "numberOfClicks": 0, "location": { "name": "Etiler Tennis Club", "type": "Place", "longitude": 12.34, "latitude": 56.78, "altitude": 90, "units": "m" }, "url":"", "sport": "Tennis", "equipmentMinSkillLevel": 1, "equipmentMaxSkillLevel": 5, "equipmentType": "racket" } }
-
Parameters
Parameter Description Parameter Type Data Type id ID of the created equipment Body Int content Content of the created equipment Body String title Title of the created equipment Body String location Location of the created equipment Body String sport Sport type of the created equipment Body Char latitude Latitude of the created equipment Body Float longitude Longitude of the created equipment Body Float owner Owner of the created equipment Body User min_skill Min skill level of the created equipment Body Int max_skill Max skill level of the created equipment Body Int equipment_type Type of the created equipment Body String url URL of the created equipment Body String -
Response Messages
- 201: Created.
- 400: Bad request.
-
Home
-
Communication plan
-
Some interesting GitHub repositories
- Git Basics
- Time Tracking
- RAM
- Lessons Learned
- System Manual
- Doğukan Akar
- Şefika Akman
- Ömer Arslan
- İbrahim Kağan Bayat
- Berkay Döner
- Ahmet Necip Görgülü
- Ege Can Kaya
- Bengisu Özaydın
- Mehmet Saraçoğlu
- Kerem Zaman
- Project Requirements
- Existing Examples
- Questions for Customers
- Customer Meeting Notes
- Scenarios and Mockups
- Class Diagram
- Sequence Diagrams
- Use Case Diagram
- Practice App API Documentation
- Rebound API Documentation
- Meeting Notes #1 (28.03.2021)
- Meeting Notes #2 (30.03.2021)
- Meeting Notes #3 (03.04.2021)
- Meeting Notes #4 (07.04.2021)
- Meeting Notes #5 (14.04.2021)
- Meeting Notes #6 (21.04.2021)
- Meeting Notes #7 (24.04.2021)
- Meeting Notes #8 (28.04.2021)
- Meeting Notes #9 (29.04.2021)
- Meeting Notes #10 (05.05.2021)
- Meeting Notes #11 (22.05.2021)
- Meeting Notes #12 (26.05.2021)
- Meeting Notes #13 (29.05.2021)
- Meeting Notes #14 (02.06.2021)
- Meeting Notes #15 (09.06.2021)