The Quimer API is a RESTful API that provides endpoints for managing various aspects of a computer-based test system, including authentication, subjects, topics, tests, questions, answers, sessions, and user responses.
The Quimer API uses JSON Web Tokens (JWT) for authentication. The access token is valid for 1 hour, and the refresh token is valid for 7 days. The access token must be included in the Authorization
header of all requests that require authentication. The access token is prefixed with Bearer
.
username
: The username of the user.password
: The password of the user.
Test Credentials:
username: admin
,password: admin_quimer
.
For User Registration and some user related operations that doesn't have a specific endpoint, use the
/api/users/
endpoint.
POST
: Authenticate user credentials and obtain an access token.
POST
: Logout the authenticated user and invalidate the access token.
GET
: Retrieve details of the authenticated user.
POST
: Change the password of the authenticated user.
POST
: Verify the validity of an access token.
POST
: Refresh an expired access token.
GET
: Retrieve all users.POST
: Create a new user.
GET
: Retrieve a specific user.PUT
: Update a specific user.DELETE
: Delete a specific user.
GET
: Retrieve all subjects.POST
: Create a new subject.
GET
: Retrieve a specific subject.PUT
: Update a specific subject.DELETE
: Delete a specific subject.
GET
: Retrieve all topics.POST
: Create a new topic.
GET
: Retrieve a specific topic.PUT
: Update a specific topic.DELETE
: Delete a specific topic.
GET
: Retrieve all tests.POST
: Create a new test.
GET
: Retrieve a specific test.PUT
: Update a specific test.DELETE
: Delete a specific test.
GET
: Retrieve all questions.POST
: Create a new question.
GET
: Retrieve a specific question.PUT
: Update a specific question.DELETE
: Delete a specific question.
GET
: Retrieve all answers.POST
: Create a new answer.
GET
: Retrieve a specific answer.PUT
: Update a specific answer.DELETE
: Delete a specific answer.
GET
: Retrieve all sessions.POST
: Create a new session.
GET
: Retrieve a specific session.PUT
: Update a specific session.DELETE
: Delete a specific session.
GET
: Retrieve all user responses.POST
: Create a new user response.
GET
: Retrieve a specific user response.PUT
: Update a specific user response.DELETE
: Delete a specific user response.
Pagination are supported for all endpoints that return a list of items. The default page size is 10 items per page.