Sign inSign up

archety/student-api-in-memory

By archety

•Updated 6 months ago

Spring Boot student REST API for learning, in-memory, Docker & Kubernetes ready

Image
Languages & frameworks
0

886

archety/student-api-in-memory repository overview

⁠Student API (In-Memory) - archety/student-api

A lightweight Spring Boot REST API for managing students, designed for learning and experimentation.

This version uses an in-memory data store, making it ideal for:

  • learning REST API fundamentals
  • testing endpoints quickly without external dependencies
  • introducing Docker and Kubernetes concepts without database complexity

⁠Features

  • Full CRUD operations on students
  • Filtering by course and status
  • Status management endpoints
  • In-memory storage (no database required)
  • Actuator endpoints for monitoring

⁠Base URL

http://localhost:8080

⁠Available Endpoints

⁠Students
  • GET /api/students
    Retrieve all students

  • GET /api/students/{id}
    Retrieve a student by ID

  • POST /api/students
    Create a new student

  • PUT /api/students/{id}
    Update an existing student

  • DELETE /api/students/{id}
    Delete a student


⁠Search & Filtering
  • GET /api/students/search?course={course}
    Filter students by course

  • GET /api/students/search?status={status}
    Filter students by status

  • GET /api/students/search?course={course}&status={status}
    Filter by both course and status


⁠Additional Endpoints
  • GET /api/students/count
    Get total number of students

  • GET /api/students/version
    Get API version

  • PATCH /api/students/{id}/status
    Update only the student status


⁠Actuator
  • GET /actuator/health
    Health check endpoint

  • GET /actuator/info
    Application info


⁠Example Request

⁠Create Student
POST /api/students
{
  "firstName": "John",
  "lastName": "Doe",
  "email": "[email protected]",
  "course": "Computer Science",
  "age": 22,
  "status": "ACTIVE"
}

⁠Use Cases

  • Educational environments (bootcamps, junior developers)
  • API testing and prototyping
  • Docker and Kubernetes labs

⁠Resources


⁠Source Code


⁠License

MIT License

Copyright (c) 2026 Giovanni Pace

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


⁠☕ Coffeeware Philosophy

If this project helped you build something useful or learn something new, consider offering a coffee ☕

The best way to support my work is by subscribing to my YouTube channel: https://youtube.com/@archety⁠

Tag summary

Content type

Image

Digest

sha256:095476077…

Size

109.8 MB

Last updated

6 months ago

docker pull archety/student-api-in-memory