Disclosure: when you buy through links on our site, we may earn an affiliate commission.

Build a server-side RESTful API with Coldbox (Merapi)

Build modern ColdFusion apps with Coldbox (Coldbox 6.5 , Lucee 5.3, MySQL 5.7)
0.0
0.0/5
(0 reviews)
3 students
Created by

9.8

CourseMarks Score®

10.0

Freshness

N/A

Feedback

9.2

Content

Platform: Udemy
Video: 3h 6m
Language: English
Next start: On Demand

Top API courses:

Detailed Analysis

CourseMarks Score®

9.8 / 10

CourseMarks Score® helps students to find the best classes. We aggregate 18 factors, including freshness, student feedback and content diversity.

Freshness Score

10.0 / 10
This course was last updated on 1/2022.

Course content can become outdated quite quickly. After analysing 71,530 courses, we found that the highest rated courses are updated every year. If a course has not been updated for more than 2 years, you should carefully evaluate the course before enrolling.

Student Feedback

We analyzed factors such as the rating (0.0/5) and the ratio between the number of reviews and the number of students, which is a great signal of student commitment.

New courses are hard to evaluate because there are no or just a few student ratings, but Student Feedback Score helps you find great courses even with fewer reviews.

Content Score

9.2 / 10
Video Score: 8.0 / 10
The course includes 3h 6m video content. Courses with more videos usually have a higher average rating. We have found that the sweet spot is 16 hours of video, which is long enough to teach a topic comprehensively, but not overwhelming. Courses over 16 hours of video gets the maximum score.
Detail Score: 10.0 / 10

The top online course contains a detailed description of the course, what you will learn and also a detailed description about the instructor.

Extra Content Score: 9.5 / 10

Tests, exercises, articles and other resources help students to better understand and deepen their understanding of the topic.

This course contains:

0 article.
12 resources.
0 exercise.
0 test.

Table of contents

Description

We are going to build a Coldbox REST API and test it using the TestBox module. We shall document this API by adding annotations to our API handlers. We’ll then use the Coldbox cbSwagger module to generate our API documentation in the Swagger Editor. Finally, we’ll use Postman to input data in order to simulate API responses from calls to our development server.
Please note however, that it is not in the scope of this course to explain Swagger Editor and Postman tools in detail. Also note that  API security issues using Coldbox cbSecurity and JWT (Json Web Tokens) won’t  be discussed in this course. Last and not least, we won’t build and connect a javaScript front-end to this server-side API.
We are first going to add tables to our MySQL database schema called Merapi (4 tables altogether) , build relationships between those tables and populate our tables with seed data with the help of Coldbox cfmigrations module. This database schema manages data about Countries, Currencies, Cities and Airports. The cfmigrations module was already covered in detail in my two earlier tutorials, but will be covered again at the beginning of this tutorial and documented in the guide provided with it.
Next, we are going to build our model and map our entity class property names to our tables columns name using an XML schema file representing the database schema. We’ll also have an XML Loader file to read the XML schema, thus implementing a simple custom object relational mapper.  This approach is an alternative, to what we demonstrated in another course called Tamarind v1, in which we used Quick ORM to map entity object properties to table columns and to load entities in memory. Therefore, in this course, no ORM is involved.
We also leveraged object inheritance with the creation of a BaseService parent component. Like a DAO (Data Access Object), this component provides an abstraction of our queries for READ, DELETE and record filtering methods. This way, there is no need to write those queries again in the children components. We simply call the relevant method from the BaseService parent component with the Super keyword.
To make sure that our model entity and services are fully functional, we shall use the Testbox module to write unit tests. After completing our model entity and service components and making sure all our unit tests pass, we shall focus on building the API itself. The API is going to deal with two types of things: the API handlers and the API documentation.
The handlers are composed of actions (index, show, create, update and delete). As we write our handlers, we shall also write the corresponding integration tests that guarantee that our handlers are working fine. Integration tests will also be written with Testbox. 
The API documentation is composed of json files such as responses, requestBody, parameters and examples that apply to each handler’s action based on an API response such as 2xx (Success), 4xx (Not found or validation error) or 5xx (Server error). A pointer to each of these json files found in the /apidocs folder, will be added as an annotation to the handler’s action code. Thanks to this, our API documentation will become immediately exportable to tools such as Postman or OpenAPI (Swagger).
Once this is done, we shall leverage the Coldbox cbswagger module to generate an output as we hit our development server url at cbswagger. Copying and pasting this cbwagger output in our Swagger Editor will not only deliver a colourful and neat documentation of our API, but also generate an openAPI.yaml file that we can then import into Postman. Postman is a tool that allows further testing of our API server with real data.
At the end of the course, you should have acquired a solid and practical understanding as how to build a server-side REST API with the Coldbox framework.

You will learn

✓ Use the Coldbox framework to build a REST API
✓ Create a database schema with Coldbox migration (cfmigrations) components
✓ Write model components classes and test them with the Testbox BDD module
✓ Write API handlers and test them with the Testbox BDD module
✓ Document the API by adding annotations to each of our handler’s actions
✓ Generate our API documentation with the Coldbox cbSwagger module
✓ Create an OpenAPI yaml file with the Open API Editor (f.k.a the Swagger editor)
✓ Import the generated OpenAPI yaml file in POSTMAN
✓ Test the API with data input within POSTMAN
✓ Export the API from POSTMAN as a collection file

Requirements

• This course will be run on a Mac and all instructions will apply to a Mac environment
• Must have a My
• SQL 5.7 database installed and a client utility to connect to it
• No prior knowledge or experience with Coldbox or CFML coding are needed

This course is for

• Software developers, consultants and corporate power users
• Developers and maintainers of legacy ColdFusion code
• Developers recognising the value of open source technology adoption
• Developers that are open to learn and explore an alternative server side technology

How much does the Build a server-side RESTful API with Coldbox (Merapi) course cost? Is it worth it?

The course costs $12.99. And currently there is a 57% discount on the original price of the course, which was $29.99. So you save $17 if you enroll the course now.

Does the Build a server-side RESTful API with Coldbox (Merapi) course have a money back guarantee or refund policy?

YES, Build a server-side RESTful API with Coldbox (Merapi) has a 30-day money back guarantee. The 30-day refund policy is designed to allow students to study without risk.

Are there any SCHOLARSHIPS for this course?

Currently we could not find a scholarship for the Build a server-side RESTful API with Coldbox (Merapi) course, but there is a $17 discount from the original price ($29.99). So the current price is just $12.99.

Who is the instructor? Is Philippe SAMBOR a SCAM or a TRUSTED instructor?

Philippe SAMBOR has created 3 courses that got 54 reviews which are generally positive. Philippe SAMBOR has taught 2,458 students and received a 4.0 average review out of 54 reviews. Depending on the information available, Philippe SAMBOR is a TRUSTED instructor.
Managing partner at Aquarius Logics
Philippe Sambor is a freelance instructor based in Singapore. He graduated from business school in France and started his own business in 2000. Information technology has always been an essential part of his career, albeit more in direct relation to the business than pure engineering. To him, knowing how to code has always been an essential asset as an entrepreneur.




Here is what he had to say about what motivated him to teach:

“I dedicated the recent few years acquiring the knowledge of the CFML language (also known as ColdFusion), leveraging the ColdBox CFML framework as a core server technology. CFML is a language that I came to consider for its simplicity, portability and reliability. After 25 years on the market, as long as Java (in which it is rooted), PHP or Ruby, ColdFusion evolved into the robust and modern CFML language it is today, powered by a vibrant and dynamic worldwide community. Although CFML is an easy language to pick up, writing secure, high performance and quality tested code as well as understanding all the moving parts throughout the entire stack is not. This is where I thought that my contribution to the community at large could make a difference.”

Show more

9.8

CourseMarks Score®

10.0

Freshness

N/A

Feedback

9.2

Content

Platform: Udemy
Video: 3h 6m
Language: English
Next start: On Demand

Students are also interested in

Review widget (for course creators):

Build a server-side RESTful API with Coldbox (Merapi) rating
Code for the widget (just copy and paste it to your site):
<a href="https://coursemarks.com/course/build-a-server-side-restful-api-with-coldbox-merapi/" target="_blank" title="Build a server-side RESTful API with Coldbox (Merapi) on Coursemarks.com"><img border="0" src="https://coursemarks.com/widget/98.svg" width="200px" alt="Build a server-side RESTful API with Coldbox (Merapi) rating"/></a>