Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cloudProject
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Job Bahner
cloudProject
Commits
6ef82c21
Commit
6ef82c21
authored
5 years ago
by
Bjørnar Larsen
Browse files
Options
Downloads
Patches
Plain Diff
Improved description of endpoints
parent
f4dce868
No related branches found
No related tags found
1 merge request
!5
Dev
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+23
-6
23 additions, 6 deletions
README.md
with
23 additions
and
6 deletions
README.md
+
23
−
6
View file @
6ef82c21
#
c
loudProject
#
C
loudProject
Project in Cloud Technologies IMT2681
Project in Cloud Technologies IMT2681
<br>
Group members: Job Nestor, Johannes Borgen, Bjørnar Larsen
## Status
## Status
You can view this endpoint by visiting the endpoint /altocumulus/v1/status/
This endpoint returns the http status of the the 2 API's we use as well as checking connectivity with the database.
You can view this endpoint by sending a GET request to: .../altocumulus/v1/status/
## Turer
## Turer
This endpoint takes can take 2 parameters ?limit="int" and &skip="int". If they are not specified it wil set limit to 20 and it wont skip (start at 0)
This endpoint returns a list of different routes it takes can take 2 parameters ?limit="int" and &skip="int".
The endpoint can be reached at /altocumulus/v1/turer
If they are not specified it wil set limit to 20 and it wont skip (start at 0)
The endpoint can be reached by a get request to /altocumulus/v1/turer
## Tur
## Tur
This endpoint can be reached at /altocumulus/v1/tur/524081f9b8cb77df150007fa.
This endpoint can be reached at /altocumulus/v1/tur/524081f9b8cb77df150007fa.
The string at the end is the id of the trip and can be replaced with any other valid id gotten from for example the turer endpoint
The string at the end is the id of the trip and can be replaced with any other valid id gotten from for example the turer endpoint
The endpoint provides more information about the route as well as weatherforecast and reviews stored in the database.
brief description of the original project plan, and what has and has not been achieved/changed in the final product
## Review
<code>
../altocumulus/v1/turer
</code>
#### Get
By sending a Get request to the endpoint you wil get all a list of all the reviews from the database
#### Post
By sending a Post request with a payload you can add a review to the database. Example payload:
<code>
{"navn": "Andre", "turid": "524081f9b8cb77df150007fa", "beskrivelse": "Dette var en fin tur", "terningkast": 5}
</code>
Navn, turid and beskrivelse has to be a string and terningkast has to be a number between 1 and 6. If you add a review
to the database it wil respond with the reviewID, this can be used to delete
#### Delete
By sending a Delete request to /tur/"ID", Where id is the string returned in the post endpoint wil delete the review from the Database
## Report
## Report
brief description of the original project plan, and what has and has not been achieved/changed in the final product
###### Reflection of what went well and what went wrong with the project
###### Reflection of what went well and what went wrong with the project
In our project, we tried many different ideas and techniques in GO, in group working,
In our project, we tried many different ideas and techniques in GO, in group working,
and other best pratices. This means that we as programmers, and team members
and other best pratices. This means that we as programmers, and team members
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment