Skip to content

Commit

Permalink
Merge branch '224-confirmation-email-when-companies-register' of gith…
Browse files Browse the repository at this point in the history
…ub.com:NIAEFEUP/nijobs-be into 224-confirmation-email-when-companies-register
  • Loading branch information
FranciscoCardoso913 committed Sep 16, 2023
2 parents 5c47e2f + 0be0cf9 commit 33d750f
Show file tree
Hide file tree
Showing 6 changed files with 6,550 additions and 10,166 deletions.
1 change: 1 addition & 0 deletions documentation/docs/applications/approve.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ values={[

</TabItem>
</Tabs>

### Example 5 - Application is not verified

**Code** : <Highlight level="danger" inline>409 CONFLICT</Highlight>
Expand Down
12 changes: 8 additions & 4 deletions documentation/docs/applications/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import Highlight from "../../src/highlight.js"
## Details

This endpoint is used to create company applications.
In order of a Company to use its account, the company must verify its application by clicking in a link sent by email after the creation of the application and then the Company should
finish its registration.
In order for a Company to use its account, the company must verify its application by clicking in a link sent
by email after its creation. After that the Company should finish its registration.

**URL** : `/apply/company`

Expand All @@ -36,7 +36,11 @@ see [register](../auth/register).
Email used for the company application and subsequent account.

Must be in a valid email format.
Can't already be in use for accounts or other applications.
Can't already be in use on any account.

:::info
After creating an application, if another application is created with the same email after 10 minutes, the existing one will be replaced. Creating the new application before the 10 minute mark will result in an error.
:::

### password

Expand Down Expand Up @@ -181,7 +185,7 @@ values={[
"password": "password123",
"companyName": "Company",
"motivation": "We wish to revolutionize the industry with young engineers."
}
}ara quem usa o timetable-bruteforcer
```

</TabItem>
Expand Down
1 change: 1 addition & 0 deletions documentation/docs/applications/reject.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ values={[

</TabItem>
</Tabs>

### Example 5 - Application is not verified

**Code** : <Highlight level="danger" inline>409 CONFLICT</Highlight>
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/applications/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ values={[
"submittedAt": "2022-09-07T13:15:15.971Z",
"isVerified": false,
"__v": 0,
"state": "PENDING"
"state": "UNVERIFIED"
}
],
"docCount": 4
Expand Down
4 changes: 2 additions & 2 deletions documentation/docs/companies/get-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ values={[

### Example 2 - Insufficient permission

**Code** : <Highlight level="success" inline>401 UNAUTHORIZED</Highlight>
**Code** : <Highlight level="danger" inline>401 UNAUTHORIZED</Highlight>

<Tabs
defaultValue="request"
Expand Down Expand Up @@ -113,7 +113,7 @@ values={[

### Example 3 - Invalid ID

**Code** : <Highlight level="success" inline>422 UNPROCESSABLE ENTITY</Highlight>
**Code** : <Highlight level="danger" inline>422 UNPROCESSABLE ENTITY</Highlight>

<Tabs
defaultValue="request"
Expand Down
Loading

0 comments on commit 33d750f

Please sign in to comment.