Skip to content

H0sc/jobportal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

job-portal

Design

Api Endpoints

1. GET /ads

Query-Params

  • search=DCI (Search-Field)
  • location=Berlin
  • page=1

Response-Body

[
    {
        _id: "123",
        title: "My Title",
        description: "something",
        location: "My location",
        category: "Provider",
        wage: 12,
        user: {
            name: "User Name"
        },
        createdAt: 2022-11-11T19:46:39.731+00:00,
        updatedAt: 2022-11-11T19:46:39.731+00:00
    }
]

2. GET /ads/:id

Response-Body

    {
        _id: "123",
        title: "My Title",
        description: "something",
        location: "My location",
        category:"Provider",
        wage: 12,
        user: {
            name: "User Name"
        },
        createdAt: 2022-11-11T19:46:39.731+00:00,
        updatedAt: 2022-11-11T19:46:39.731+00:00
    }

Response-Body

    {
        _id: "123",
        title: "My Title",
        description: "something",
        location: "My location",
        category:"Provider",
        contactVia: ["phone"],
        wage: 12,
        user: {
            name: "User Name",
            telephone: "0049534643636"
        },
        createdAt: 2022-11-11T19:46:39.731+00:00,
        updatedAt: 2022-11-11T19:46:39.731+00:00
    }

3. POST /ads/post

Post-Body

    {
        title: "My Title",
        description: "something",
        location: "My location",
        category: "Provider",
        wage: 12, 
        contactVia: ["email"]
        user: "Udel17555klmjer54gj7"
    }

Response-Body

    {
        _id: "123",
        title: "My Title",
        description: "something",
        location: "My location",
        category: "Provider",
        wage: 12,
        contactVia: ["email"],
        user: "Udel17555klmjer54gj7",
        createdAt: 2022-11-11T19:46:39.731+00:00,
        updatedAt: 2022-11-11T19:46:39.731+00:00
    }

4. POST /user/login

Post-Body

    {
     email: "[email protected]",
     password: "123456"
    }

Response-Body

    {
     _id: "123",
     name: "User Name",
     email: "[email protected]",
     avatar: "url-to-avatar",
     sector: "Web Development",
     city: "Berlin",
     description: "something",
     telephone: "00496666666666"
    }

5. POST /user/register

Post-Body

    {
     email: "[email protected]",
     password: "123456",
     name: "User Name"
    }

Response-Body

    {
     _id:"123",
     name: "User Name",
     email: "[email protected]"
    }

6. GET /user

Response-Body

    {
     _id:"123",
     name: "User Name",
     email: "[email protected]",
     avatar: "url-to-avatar",
     sector: "Web Development",
     city: "My address",
     telephone: "004966666666666",
     description: "something"
    }

7. PUT /user/edit-account

Put-Body

    {
     password: "123456"
    }

Response-Body

    {
     user //ohne Passwort
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 85.1%
  • JavaScript 9.7%
  • CSS 4.8%
  • Other 0.4%