Skip to content

Commit

Permalink
final readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipBernevec committed Mar 24, 2019
1 parent 3921232 commit 7113213
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ There is one Heroku deployments:

| Endpoint | Method | Header | Body | Output |
|----------|--------|--------|------|--------|
| /posting/create | POST | "Authorization": "Bearer [INSERT_JWT]" | recruiter: String, title: String, description: String, location: String, salary: Number, requirments: String, company: String, start_date: String, end_date: String, posting_date: String, deadline: String | Creates a new job posting, returns the posting with the generated id |
| /posting/id/:id | GET | | Body | Output |
| /posting/recruiter/:recruiter | GET | | Body | Output |
| /posting/allpostings| GET | | Body | Output |
| /posting/:id | PUT | "Authorization": "Bearer [INSERT_JWT]" | Body | Output |
| /posting/dropall | DELETE | "Authorization": "Bearer [INSERT_JWT]" | Body | Output |
| /posting/id/:id | DELETE | "Authorization": "Bearer [INSERT_JWT]" | Body | Output |
| /posting/create | POST | "Authorization": "Bearer [INSERT_JWT]" | `recruiter`: String, `title`: String, `description`: String, `location`: String, `salary`: Number, `requirments`: String, `company`: String, `start_date`: String, `end_date`: String, `posting_date`: String, `deadline`: String | Creates a new job posting, returns the posting with the generated id |
| /posting/id/:id | GET | | | Returns the posting with the ID specified in the request |
| /posting/recruiter/:recruiter | GET | | | Returns all postings from the recruiter specified in the request |
| /posting/allpostings| GET | | | Retunrs all the exisiting postings |
| /posting/:id | PUT | "Authorization": "Bearer [INSERT_JWT]" | `recruiter`: String, `title`: String, `description`: String, `location`: String, `salary`: Number, `requirments`: String, `company`: String, `start_date`: String, `end_date`: String, `posting_date`: String, `deadline`: String | Updates the posting with the ID from the request and updates the elements in the body that are specified |
| /posting/dropall | DELETE | "Authorization": "Bearer [INSERT_JWT]" | | Deletes all the postings in the collection |
| /posting/id/:id | DELETE | "Authorization": "Bearer [INSERT_JWT]" | | Deletes the posting with the ID from the request |



Expand Down

0 comments on commit 7113213

Please sign in to comment.