Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement POST /faculties #8

Open
Kasunjith-Bimal opened this issue Mar 2, 2018 · 0 comments
Open

Implement POST /faculties #8

Kasunjith-Bimal opened this issue Mar 2, 2018 · 0 comments

Comments

@Kasunjith-Bimal
Copy link
Contributor

A faculty resource should follow the following request/response schema.

POST /faculties

Request schema

{
    "name": "Engineering"
}

Response schemas
Status 201:

{
    "self": "http://localhost:8090/api/faculties/{faculty_id}",
    "name": "Engineering"
}

Status 409: If a faculty with that name already exists.

{
     "status": 409,
     "message": "A faculty with name: {name} already exists.",
     "developerMessage": "Faculty creation failed because the faculty name: {name} already exists.",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant